Optional
parentThe y coordinate of the vector.
The z coordinate of the vector.
Computes the absolute value of each coordinate of the 3D vector.
the absolute value of this 3D vector.
Adds another 3D vector to this 3D vector.
The other 3D vector to add.
The result of the addition.
Ceils the coordinates of the 3D vector.
The 3D vector with the coordinates ceiled.
Clones this 3D vector into a new 3D vector.
The cloned 3D vector.
Calculates the cross product between this 3D vector and another 3D vector.
The other 3D vector to calculate the cross product with.
The result of the cross product.
Gets the distance between this 3D vector and another 3D vector.
The distance between the 3D vectors.
Gets the Manhattan distance between this 3D vector and another 3D vector. The Manhattan distance is the sum of the absolute differences of their coordinates.
The other 3D vector to get the distance to.
The Manhattan distance between the 3D vectors.
Divides this 3D vector with a scalar.
The scalar to divide with.
The result of the division.
Calculates the dot product between this 3D vector and another 3D vector.
The other 3D vector to calculate the dot product with.
The result of the dot product.
Returns a string representation of this 3D vector.
The string representation of this 3D vector.
Floors the coordinates of the 3D vector.
The 3D vector with the coordinates floored.
Checks if the 3D vector is zero.
true if the 3D vector is zero, false otherwise.
Calculates the length of this 3D vector.
The length of the 3D vector.
Calculates the square length of this 3D vector.
the square length of the 3D vector.
Linearly interpolates between this 3D vector and another 3D vector.
The other 3D vector to interpolate with.
The interpolation factor.
The interpolated 3D vector.
Multiplies this 3D vector with a scalar.
The scalar to multiply with.
The result of the multiplication.
Normalizes this 3D vector.
The normalized 3D vector.
Rounds the coordinates of the 3D vector to the nearest whole number.
Sets the coordinates of the 3D vector.
The other 3D vector to set the coordinates to.
Spherically interpolates between this 3D vector and another 3D vector.
The other 3D vector to interpolate with.
The interpolation factor.
The interpolated 3D vector.
Subtracts another 3D vector from this 3D vector.
The other 3D vector to subtract.
The result of the subtraction.
Static
fromConverts this array to a 3D vector.
The 3D vector that was converted.
Static
fromStatic
readReads a 3D vector from the stream.
The stream to read from.
The 3D vector that was read.
Static
writeWrites a 3D vector to the stream.
The stream to write to.
The 3D vector to write.
The x coordinate of the vector.