Companion

Functions

Link copied to clipboard
fun computeOccludeePoint(occluderBoundingSphere: BoundingSphere, occludeePosition: Cartesian3, positions: ReadonlyArray<Cartesian3>): Any

Computes a point that can be used as the occludee position to the visibility functions. Use a radius of zero for the occludee radius. Typically, a user computes a bounding sphere around an object that is used for visibility; however it is also possible to compute a point that if seen/not seen would also indicate if an object is visible/not visible. This function is better called for objects that do not move relative to the occluder and is large, such as a chunk of terrain. You are better off not calling this and using the object's bounding sphere for objects such as a satellite or ground vehicle.

Link copied to clipboard
fun computeOccludeePointFromRectangle(rectangle: Rectangle, ellipsoid: Ellipsoid? = definedExternally): Any

Computes a point that can be used as the occludee position to the visibility functions from a rectangle.

Link copied to clipboard
fun fromBoundingSphere(occluderBoundingSphere: BoundingSphere, cameraPosition: Cartesian3, result: Occluder? = definedExternally): Occluder

Creates an occluder from a bounding sphere and the camera position.