Returns the angle between the two vectors in radians
Casts this
to a 3D coordinate representation
Length of this vector.
Calculated as sqrt lenSq()
. If you only need to compare lengths of vectors (for example
when sorting) prefer using lenSq
.
Squared length of this vector
Returns a new vector with the same direction but a length of 1
Rotate the vector around the origin counter-clockwise by rad
radians.
Casts this
to a 3d displacement/vector.
Returns the orientation of point C in respect to the directed line AB.
If the orient2d(a, b, c) > 0, then C lies to the left.
If the orient2d(a, b, c) < 0, then C lies to the right.
If the orient2d(a, b, c) == 0, then C lies to on the line.
The absolute value of the returning number is double the area of the triangle ABC
Generated using TypeDoc