isBoundingSphereVisible

Determines whether or not a sphere, the occludee, is hidden from view by the occluder.

const cameraPosition = new Cartesian3(0, 0, 0);
const littleSphere = new BoundingSphere(new Cartesian3(0, 0, -1), 0.25);
const occluder = new Occluder(littleSphere, cameraPosition);
const bigSphere = new BoundingSphere(new Cartesian3(0, 0, -3), 1);
occluder.isBoundingSphereVisible(bigSphere); //returns true

Return

true if the occludee is visible; otherwise false.

Parameters

occludee

The bounding sphere surrounding the occludee object.

See also