class

Vector3d

Mutable 3D vector with double precision. Has public x, y, z fields. Supports add(), subtract(), scale(), normalize(), distanceTo(), dot(), cross(), length(). Static constants: ZERO, UP, DOWN, NORTH, SOUTH, EAST, WEST. Use clone() before modifying shared vectors.

Methods

double getX()

Get the X coordinate.

double getY()

Get the Y coordinate.

double getZ()

Get the Z coordinate.