The Y component.
The Z component.
An immutable Cartesian3 instance initialized to (1.0, 1.0, 1.0).
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).
The number of elements used to pack the object into an array.
Duplicates this Cartesian3 instance.
The modified result parameter or a new Cartesian3 instance if one was not provided.
Compares this Cartesian against the provided Cartesian componentwise and returns
true
if they are equal, false
otherwise.
true
if they are equal, false
otherwise.
Compares this Cartesian against the provided Cartesian componentwise and returns
true
if they pass an absolute or relative tolerance test,
false
otherwise.
true
if they are within the provided epsilon, false
otherwise.
Creates a string representing this Cartesian in the format '(x, y, z)'.
A string representing this Cartesian in the format '(x, y, z)'.
Computes the absolute value of the provided Cartesian.
The Cartesian whose absolute value is to be computed.
The object onto which to store the result.
The modified result parameter.
Computes the componentwise sum of two Cartesians.
The first Cartesian.
The second Cartesian.
The object onto which to store the result.
The modified result parameter.
Returns the angle, in radians, between the provided Cartesians.
The first Cartesian.
The second Cartesian.
The angle between the Cartesians.
向上取整
Duplicates a Cartesian3 instance.
The Cartesian to duplicate.
The modified result parameter or a new Cartesian3 instance if one was not provided. (Returns undefined if cartesian is undefined)
Computes the cross (outer) product of two Cartesians.
The first Cartesian.
The second Cartesian.
The object onto which to store the result.
The cross product.
Computes the distance between two points.
The first point to compute the distance from.
The second point to compute the distance to.
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 {@link Cartesian3#distance}.
The first point to compute the distance from.
The second point to compute the distance to.
The distance between two points.
Divides the provided Cartesian componentwise by the provided scalar.
The Cartesian to be divided.
The scalar to divide by.
The object onto which to store the result.
The modified result parameter.
Computes the componentwise quotient of two Cartesians.
The first Cartesian.
The second Cartesian.
The object onto which to store the result.
The modified result parameter.
Computes the dot (scalar) product of two Cartesians.
The first Cartesian.
The second Cartesian.
The dot product.
Compares the provided Cartesians componentwise and returns
true
if they are equal, false
otherwise.
true
if left and right are equal, false
otherwise.
Compares the provided Cartesians componentwise and returns
true
if they pass an absolute or relative tolerance test,
false
otherwise.
true
if left and right are within the provided epsilon, false
otherwise.
向下取整
Creates a Cartesian3 instance from an existing Cartesian4. This simply takes the x, y, and z properties of the Cartesian4 and drops w.
The Cartesian4 instance to create a Cartesian3 instance from.
The modified result parameter or a new Cartesian3 instance if one was not provided.
Returns a Cartesian3 position from longitude and latitude values given in degrees.
The longitude, in degrees
The latitude, in degrees
The position
Returns an array of Cartesian3 positions given an array of longitude and latitude values given in degrees.
A list of longitude and latitude values. Values alternate [longitude, latitude, longitude, latitude...].
The array of positions.
Returns an array of Cartesian3 positions given an array of longitude, latitude and height values where longitude and latitude are given in degrees.
A list of longitude, latitude and height values. Values alternate [longitude, latitude, height, longitude, latitude, height...].
The array of positions.
Creates a Cartesian3 instance from x, y and z coordinates.
The x coordinate.
The y coordinate.
The z coordinate.
The modified result parameter or a new Cartesian3 instance if one was not provided.
Returns a Cartesian3 position from longitude and latitude values given in radians.
The longitude, in radians
The latitude, in radians
The position
Returns an array of Cartesian3 positions given an array of longitude and latitude values given in radians.
A list of longitude and latitude values. Values alternate [longitude, latitude, longitude, latitude...].
The array of positions.
Returns an array of Cartesian3 positions given an array of longitude, latitude and height values where longitude and latitude are given in radians.
A list of longitude, latitude and height values. Values alternate [longitude, latitude, height, longitude, latitude, height...].
The array of positions.
Converts the provided Spherical into Cartesian3 coordinates.
The Spherical to be converted to Cartesian3.
The modified result parameter or a new Cartesian3 instance if one was not provided.
获取点集的中心位置
Computes project pt on line.
The project pt on line.
Computes the linear interpolation or extrapolation at t using the provided cartesians.
The value corresponding to t at 0.0.
The value corresponding to t at 1.0.
The point along t at which to interpolate.
The object onto which to store the result.
The modified result parameter.
Computes the Cartesian's magnitude (length).
The Cartesian instance whose magnitude is to be computed.
The magnitude.
Computes the provided Cartesian's squared magnitude.
The Cartesian instance whose squared magnitude is to be computed.
The squared magnitude.
Compares two Cartesians and computes a Cartesian which contains the maximum components of the supplied Cartesians.
A cartesian to compare.
A cartesian to compare.
The object into which to store the result.
A cartesian with the maximum components.
Computes the value of the maximum component for the supplied Cartesian.
The cartesian to use.
The value of the maximum component.
Computes the midpoint between the right and left Cartesian.
The first Cartesian.
The second Cartesian.
The object onto which to store the result.
The midpoint.
Compares two Cartesians and computes a Cartesian which contains the minimum components of the supplied Cartesians.
A cartesian to compare.
A cartesian to compare.
The object into which to store the result.
A cartesian with the minimum components.
Computes the value of the minimum component for the supplied Cartesian.
The cartesian to use.
The value of the minimum component.
Returns the axis that is most orthogonal to the provided Cartesian.
The Cartesian on which to find the most orthogonal axis.
The object onto which to store the result.
The most orthogonal axis.
Multiplies the provided Cartesian componentwise by the provided scalar.
The Cartesian to be scaled.
The scalar to multiply with.
The object onto which to store the result.
The modified result parameter.
Computes the componentwise product of two Cartesians.
The first Cartesian.
The second Cartesian.
The object onto which to store the result.
The modified result parameter.
Negates the provided Cartesian.
The Cartesian to be negated.
The object onto which to store the result.
The modified result parameter.
Computes the normalized form of the supplied Cartesian.
The Cartesian to be normalized.
The object onto which to store the result.
The modified result parameter.
Stores the provided instance into the provided array.
The value to pack.
The array to pack into.
The array that was packed into
Flattens an array of Cartesian3s into an array of components.
The array of cartesians to pack.
The packed array.
Projects vector a onto vector b
The vector that needs projecting
The vector to project onto
The result cartesian
The modified result parameter
Computes the componentwise difference of two Cartesians.
The first Cartesian.
The second Cartesian.
The object onto which to store the result.
The modified result parameter.
Retrieves an instance from a packed array.
The packed array.
The modified result parameter or a new Cartesian3 instance if one was not provided.
Unpacks an array of cartesian components into an array of Cartesian3s.
The array of components to unpack.
The unpacked array.
The X component.