The x component of the vector.
The y component of the vector.
Readonly
objectThis object is of type vector.
Readonly
virtualWhether this object is virtual.
Readonly
xThe x component of the vector.
Readonly
yThe y component of the vector.
Adds to vectors to create a new vector.
Another vector.
Calculates the dot product of this vector and another vector.
Another vector.
Multiplies the vector by a scalar to create a new vector.
A scalar.
Normalizes the vector to a length, defaulting to 1, to create a new vector.
Optional
length: numberThe length to normalize to.
A new vector with the same direction as this vector and the given length.
Subtracts another vector from this vector to create a new vector.
Another vector.
Returns the vector as a BareVector.
Generated using TypeDoc
Represents a vector with functions to manipulate it.