isScaledSpacePointVisible

external fun isScaledSpacePointVisible(occludeeScaledSpacePosition: Cartesian3): Boolean(source)

Determines whether or not a point expressed in the ellipsoid scaled space, is hidden from view by the occluder. To transform a Cartesian X, Y, Z position in the coordinate system aligned with the ellipsoid into the scaled space, call Ellipsoid.transformPositionToScaledSpace.

const cameraPosition = new Cartesian3(0, 0, 2.5);
const ellipsoid = new Ellipsoid(1.0, 1.1, 0.9);
const occluder = new EllipsoidalOccluder(ellipsoid, cameraPosition);
const point = new Cartesian3(0, -3, -3);
const scaledSpacePoint = ellipsoid.transformPositionToScaledSpace(point);
occluder.isScaledSpacePointVisible(scaledSpacePoint); //returns true

Return

true if the occludee is visible; otherwise false.

Parameters

occludeeScaledSpacePosition

The point to test for visibility, represented in the scaled space.

See also