Creates a vector from X and Y components.
Creates a vector from an angle and a length.
Angle in radians
Calculates the Chebyshev distance
of vector
.
Calculates the magnitude of a vector.
Calculates the Manhattan distance
of vector
.
Determines whether value
is a Vector.
Multiplies v1
by v2
.
Use multiplied if you want to create a new vector instead.
Normalizes vector
to have a length of 1.
This function modifies vector
. Use normalized if you want to
create a new vector instead.
Subtracts v2
from v1
.
Use subtracted if you want to create a new vector instead.
Generated using TypeDoc
Vector represents a direction and a magnitude.