main.cesium.CircleOutlineGeometry.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
@file:Suppress(
"NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE",
)
package cesium
/**
* A description of the outline of a circle on the ellipsoid.
* ```
* // Create a circle.
* var circle = new CircleOutlineGeometry({
* center : Cartesian3.fromDegrees(-75.59777, 40.03883),
* radius : 100000.0
* });
* var geometry = CircleOutlineGeometry.createGeometry(circle);
* ```
* @see Online Documentation
*/
@JsName("\$cesium__CircleOutlineGeometry")
external class CircleOutlineGeometry(options: ConstructorOptions) {
/**
* @property [center] The circle's center point in the fixed frame.
* @property [radius] The radius in meters.
* @property [ellipsoid] The ellipsoid the circle will be on.
* Default value - [Ellipsoid.WGS84]
* @property [height] The distance in meters between the circle and the ellipsoid surface.
* Default value - `0.0`
* @property [granularity] The angular distance between points on the circle in radians.
* Default value - `0.02`
* @property [extrudedHeight] The distance in meters between the circle's extruded face and the ellipsoid surface.
* Default value - `0.0`
* @property [numberOfVerticalLines] Number of lines to draw between the top and bottom of an extruded circle.
* Default value - `16`
*/
interface ConstructorOptions {
var center: Cartesian3
var radius: Double
var ellipsoid: Ellipsoid?
var height: Double?
var granularity: Double?
var extrudedHeight: Double?
var numberOfVerticalLines: Int?
}
companion object : Packable {
/**
* The number of elements used to pack the object into an array.
* @see Online Documentation
*/
override val packedLength: Int
/**
* 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
*/
override fun pack(
value: CircleOutlineGeometry,
array: Array,
startingIndex: Int?,
): 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.
* @return The modified result parameter or a new CircleOutlineGeometry instance if one was not provided.
* @see Online Documentation
*/
override fun unpack(
array: Array,
startingIndex: Int?,
result: CircleOutlineGeometry?,
): CircleOutlineGeometry
/**
* Computes the geometric representation of an outline of a circle on an ellipsoid, including its vertices, indices, and a bounding sphere.
* @param [circleGeometry] A description of the circle.
* @return The computed vertices and indices.
* @see Online Documentation
*/
fun createGeometry(circleGeometry: CircleOutlineGeometry): Geometry?
}
}