Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vec2d ¶
type Vec2d struct {
X, Y float64
}
func (*Vec2d) Rotate ¶
Rotate rotates the vector x,y by theta (rad) clockwise, see https://ebitengine.org/en/documents/matrix.html#Rotating |cos,-sin| * |X| = |cos*X - sin*Y| |sin, cos| |Y| |sin*X + cos*Y|
Click to show internal directories.
Click to hide internal directories.