Companion
Properties
An immutable Cartesian3 instance initialized to (1.0, 1.0, 1.0).
The number of elements used to pack the object into an array.
An immutable Cartesian3 instance initialized to (1.0, 0.0, 0.0).
An immutable Cartesian3 instance initialized to (0.0, 1.0, 0.0).
An immutable Cartesian3 instance initialized to (0.0, 0.0, 1.0).
An immutable Cartesian3 instance initialized to (0.0, 0.0, 0.0).
Functions
Computes the absolute value of the provided Cartesian.
Computes the componentwise sum of two Cartesians.
Returns the angle, in radians, between the provided Cartesians.
Constrain a value to lie between two values.
Duplicates a Cartesian3 instance.
Computes the cross (outer) product of two Cartesians.
Computes the distance between two points.
Computes the squared distance between two points. Comparing squared distances using this function is more efficient than comparing distances using Cartesian3.distance.
Divides the provided Cartesian componentwise by the provided scalar.
Computes the componentwise quotient of two Cartesians.
Computes the dot (scalar) product of two Cartesians.
Compares the provided Cartesians componentwise and returns true
if they are equal, false
otherwise.
Compares the provided Cartesians componentwise and returns true
if they pass an absolute or relative tolerance test, false
otherwise.
Creates a Cartesian3 from three consecutive elements in an array.
Creates a Cartesian3 instance from an existing Cartesian4. This simply takes the x, y, and z properties of the Cartesian4 and drops w.
Returns a Cartesian3 position from longitude and latitude values given in degrees.
Returns an array of Cartesian3 positions given an array of longitude and latitude values given in degrees.
Returns an array of Cartesian3 positions given an array of longitude, latitude and height values where longitude and latitude are given in degrees.
Creates a Cartesian3 instance from x, y and z coordinates.
Returns a Cartesian3 position from longitude and latitude values given in radians.
Returns an array of Cartesian3 positions given an array of longitude and latitude values given in radians.
Returns an array of Cartesian3 positions given an array of longitude, latitude and height values where longitude and latitude are given in radians.
Converts the provided Spherical into Cartesian3 coordinates.
Computes the linear interpolation or extrapolation at t using the provided cartesians.
Computes the Cartesian's magnitude (length).
Computes the provided Cartesian's squared magnitude.
Compares two Cartesians and computes a Cartesian which contains the maximum components of the supplied Cartesians.
Computes the value of the maximum component for the supplied Cartesian.
Computes the midpoint between the right and left Cartesian.
Compares two Cartesians and computes a Cartesian which contains the minimum components of the supplied Cartesians.
Computes the value of the minimum component for the supplied Cartesian.
Returns the axis that is most orthogonal to the provided Cartesian.
Multiplies the provided Cartesian componentwise by the provided scalar.
Computes the componentwise product of two Cartesians.
Negates the provided Cartesian.
Computes the normalized form of the supplied Cartesian.
Stores the provided instance into the provided array.
Flattens an array of Cartesian3s into an array of components.
Projects vector a onto vector b
Computes the componentwise difference of two Cartesians.
Retrieves an instance from a packed array.
Unpacks an array of cartesian components into an array of Cartesian3s.