distanceSquaredTo
Computes the estimated distance squared from the closest point on a bounding sphere to a point.
// Sort bounding spheres from back to front
spheres.sort(function(a, b) {
return b.distanceSquaredTo(camera.positionWC) - a.distanceSquaredTo(camera.positionWC);
});
Content copied to clipboard
Return
The estimated distance squared from the bounding sphere to the point.
Parameters
cartesian
The point