Unlike some other libraries, I don't make a difference between points and vectors.
|
Uninitialized vector.
|
|
Construct a unit vector with this direction.
|
|
Construct a vector.
|
|
Return square of Euclidean length.
|
|
Return angle of the vector (with positive x-direction). Returns zero for the zero vector. |
|
Return this vector normalized (with length one).
|
|
Return this vector turned 90 degrees to the left.
|
|
Normalizes this vector into unit and returns length. If this is the zero vector, unit is set to (1,0). |
|
Equality.
|
|
Inequality.
|
|
Vector-addition.
|
|
Vector-subtraction.
|
|
Multiply vector by scalar.
|
|
Vector-addition.
|
|
Vector-subtraction.
|
|
Vector * scalar.
|
|
The origin (zero vector).
|
|
{ Vector coordinates are public.
|