Adds another 3D position to this 3D position.
The other 3D position to add.
The result of the addition.
Ceils the coordinates of the 3D position.
The 3D position with the coordinates ceiled.
Calculates the cross product between this 3D position and another 3D position.
The other 3D position to calculate the cross product with.
The result of the cross product.
Gets the distance between this 3D position and another 3D position.
The other 3D position to get the distance to.
The distance between the 3D positions.
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 position with a scalar.
The scalar to divide with.
The result of the division.
Calculates the dot product between this 3D position and another 3D position.
The other 3D position to calculate the dot product with.
The result of the dot product.
Returns a string representation of this 3D position.
The string representation of this 3D position.
Floors the coordinates of the 3D position.
The 3D position with the coordinates floored.
Calculates the length of this 3D position.
The length of the 3D position.
Calculates the square length of this 3D position.
the square length of the 3D position.
Linearly interpolates between this 3D position and another 3D position.
The other 3D position to interpolate with.
The interpolation factor.
The interpolated 3D position.
Multiplies this 3D position with a scalar.
The scalar to multiply with.
The result of the multiplication.
Rounds the coordinates of the 3D position to the nearest whole number.
Spherically interpolates between this 3D position and another 3D position.
The other 3D position to interpolate with.
The interpolation factor.
The interpolated 3D position.
Subtracts another 3D position from this 3D position.
The other 3D position to subtract.
The result of the subtraction.
Static
fromGets the block position from a positional object.
The positional object.
The block position.
Static
fromConverts a BlockPosition to a BlockPosition
The BlockPosition to convert
The converted BlockPosition
Static
hashConvert the block position to a hash.
The hash of the block position.
Static
readReads the data type from a binary stream.
The data type.
Static
toConverts the BlockPosition to a BlockPosition
The converted BlockPosition
Static
unhashConvert the hash to block position.
The hash.
The block position.
Static
writeWrites the data type to a binary stream.
Computes the absolute value of each coordinate of the 3D vector.