isPointVisible

Determines whether or not a point, 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 point = new Cartesian3(0, 0, -3);
occluder.isPointVisible(point); //returns true

Return

true if the occludee is visible; otherwise false.

Parameters

occludee

The point surrounding the occludee object.

See also