main.cesium.CullingVolume.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
@file:JsModule("cesium")
@file:Suppress(
"EXTERNAL_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER",
)
package cesium
/**
* The culling volume defined by planes.
* @see Online Documentation
*
* @constructor
* @property [planes] An array of clipping planes.
* @see Online Documentation
*/
external class CullingVolume(var planes: Array = definedExternally) {
/**
* Determines whether a bounding volume intersects the culling volume.
* @param [boundingVolume] The bounding volume whose intersection with the culling volume is to be tested.
* @return Intersect.OUTSIDE, Intersect.INTERSECTING, or Intersect.INSIDE.
* @see Online Documentation
*/
fun computeVisibility(boundingVolume: Any): Intersect
companion object {
/**
* Constructs a culling volume from a bounding sphere. Creates six planes that create a box containing the sphere.
* The planes are aligned to the x, y, and z axes in world coordinates.
* @param [boundingSphere] The bounding sphere used to create the culling volume.
* @param [result] The object onto which to store the result.
* @return The culling volume created from the bounding sphere.
* @see Online Documentation
*/
fun fromBoundingSphere(
boundingSphere: BoundingSphere,
result: CullingVolume? = definedExternally,
): CullingVolume
}
}