distance
Computes the distance between two points.
// Returns 1.0
const d = Cartesian3.distance(new Cartesian3(1.0, 0.0, 0.0), new Cartesian3(2.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.