distance
Computes the 4-space distance between two points.
// Returns 1.0
const d = Cartesian4.distance(
new Cartesian4(1.0, 0.0, 0.0, 0.0),
new Cartesian4(2.0, 0.0, 0.0, 0.0));
Content copied to clipboard
Return
The distance between two points.
Parameters
left
The first point to compute the distance from.
right
The second point to compute the distance to.