main.cesium.FrustumOutlineGeometry.kt Maven / Gradle / Ivy
The newest version!
// Automatically generated - do not modify!
@file:JsModule("cesium")
@file:Suppress(
"NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE",
)
package cesium
/**
* A description of the outline of a frustum with the given the origin and orientation.
* @see Online Documentation
*/
external class FrustumOutlineGeometry(options: ConstructorOptions) {
/**
* @property [frustum] The frustum.
* @property [origin] The origin of the frustum.
* @property [orientation] The orientation of the frustum.
*/
interface ConstructorOptions {
var frustum: dynamic
var origin: Cartesian3
var orientation: Quaternion
}
/**
* The number of elements used to pack the object into an array.
* @see Online Documentation
*/
val packedLength: Int
companion object {
/**
* Stores the provided instance into the provided array.
* @param [value] The value to pack.
* @param [array] The array to pack into.
* @param [startingIndex] The index into the array at which to start packing the elements.
* Default value - `0`
* @return The array that was packed into
* @see Online Documentation
*/
fun pack(
value: FrustumOutlineGeometry,
array: Array,
startingIndex: Int? = definedExternally,
): Array
/**
* Retrieves an instance from a packed array.
* @param [array] The packed array.
* @param [startingIndex] The starting index of the element to be unpacked.
* Default value - `0`
* @param [result] The object into which to store the result.
* @see Online Documentation
*/
fun unpack(
array: Array,
startingIndex: Int? = definedExternally,
result: FrustumOutlineGeometry? = definedExternally,
)
/**
* Computes the geometric representation of a frustum outline, including its vertices, indices, and a bounding sphere.
* @param [frustumGeometry] A description of the frustum.
* @return The computed vertices and indices.
* @see Online Documentation
*/
fun createGeometry(frustumGeometry: FrustumOutlineGeometry): Geometry?
}
}
inline fun FrustumOutlineGeometry(
block: FrustumOutlineGeometry.ConstructorOptions.() -> Unit,
): FrustumOutlineGeometry {
val options: FrustumOutlineGeometry.ConstructorOptions = js("({})")
block(options)
return FrustumOutlineGeometry(options)
}