Optionalx: number = 0x value of the vector
Optionaly: number = 0y value of the vector
Optionalz: number = 0z value of the vector
Update this vector values to absolute values
Reference to this object for method chaining
Clamp the vector value within the specified value range
lower bound
upper bound
new Vector3d
Clamp this vector value within the specified value range
lower bound
upper bound
Reference to this object for method chaining
Divide this vector values by the passed value
the value to divide the vector by
Reference to this object for method chaining
return the length (magnitude) of this vector
the length of this vector
return the square length of this vector
The length^2 of this vector.
normalize this vector (scale the vector so that its magnitude is 1)
Reference to this object for method chaining
change this vector to be perpendicular to what it was before.
(Effectively rotates it 90 degrees in a clockwise direction around the z axis)
Reference to this object for method chaining
Multiply this vector values by the given scalar
x component
Optionaly: number = xy component
Optionalz: number = 1z component
Reference to this object for method chaining
set the Vector x and y properties to the given values
x component
y component
Optionalz: number = 0z component
Reference to this object for method chaining
Convert this vector into 2d coordinate space
Reference to this object for method chaining
Convert this vector into isometric coordinate space
Reference to this object for method chaining
convert the object to a string representation
stringified representation
a generic 3D Vector Object