computeHorizonCullingPointFromRectangle

external fun computeHorizonCullingPointFromRectangle(rectangle: Rectangle, ellipsoid: Ellipsoid, result: Cartesian3? = definedExternally): Cartesian3(source)

Computes a point that can be used for horizon culling of a rectangle. If the point is below the horizon, the ellipsoid-conforming rectangle is guaranteed to be below the horizon as well. The returned point is expressed in the ellipsoid-scaled space and is suitable for use with EllipsoidalOccluder.isScaledSpacePointVisible.

Return

The computed horizon culling point, expressed in the ellipsoid-scaled space.

Parameters

rectangle

The rectangle for which to compute the horizon culling point.

ellipsoid

The ellipsoid on which the rectangle is defined. This may be different from the ellipsoid used by this instance for occlusion testing.

result

The instance on which to store the result instead of allocating a new instance.

See also