Protected
constructorInternal
X coordinate or the whole ICoordinates object
Optional
y: numberY coordinate
X coordinate of the vector
Y coordinate of the vector
Z coordinate
Returns the current vector angle, based on x,y values
the current vector angle, based on x,y values
Sets the x,y values using an angle, length must be greater than 0
the angle to set
Returns the current vector length, based on x,y values
the current vector length, based on x,y values
Sets the x,y values using the length
the length to set
Static
originAdds the given vector to the current one, modifying it
the vector to add to the current one
Calculates the distance between the current vector and the given one
the vector used for calculating the distance from the current one
the distance between the vectors
Get the distance squared between two vectors
the vector used for calculating the distance from the current one
the distance squared between the vectors
Set the vector to the specified velocity
the coordinates used to set the current vector
Subtracts the given vector from the current one, modifying it
the vector to subtract from the current one
Static
cloneStatic
createCreates a new vector instance
X coordinate
Optional
y: numberY coordinate
the new vector created
Vector constructor, creating an instance with the given coordinates