Creates a new 3D vector.
The x coordinate of the vector.
The y coordinate of the vector.
The z coordinate of the vector.
The x coordinate of the vector.
The 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.
Gets the distance between this 3D vector and another 3D vector.
The other 3D vector to get the distance to.
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.
Multiplies this 3D vector with a scalar.
The scalar to multiply with.
The result of the multiplication.
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.
Static
fromConverts this array to a 3D vector.
The 3D vector that was converted.
Static
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.
A 3D vector with floating point precision.