All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.cesium.BoxOutlineGeometry.kt Maven / Gradle / Ivy

There is a newer version: 1.90.0-10
Show newest version
// Automatically generated - do not modify!

@file:Suppress(
    "NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE",
)

package cesium

/**
 * A description of the outline of a cube centered at the origin.
 * ```
 * var box = new BoxOutlineGeometry({
 *   maximum : new Cartesian3(250000.0, 250000.0, 250000.0),
 *   minimum : new Cartesian3(-250000.0, -250000.0, -250000.0)
 * });
 * var geometry = BoxOutlineGeometry.createGeometry(box);
 * ```
 * @see Online Documentation
 */
@JsName("\$cesium__BoxOutlineGeometry")
external class BoxOutlineGeometry(options: ConstructorOptions) {
    /**
     * @property [minimum] The minimum x, y, and z coordinates of the box.
     * @property [maximum] The maximum x, y, and z coordinates of the box.
     */
    interface ConstructorOptions {
        var minimum: Cartesian3
        var maximum: Cartesian3
    }

    companion object : Packable {
        /**
         * Creates an outline of a cube centered at the origin given its dimensions.
         * ```
         * var box = BoxOutlineGeometry.fromDimensions({
         *   dimensions : new Cartesian3(500000.0, 500000.0, 500000.0)
         * });
         * var geometry = BoxOutlineGeometry.createGeometry(box);
         * ```
         * @see Online Documentation
         */
        fun fromDimensions(options: FromDimensionsOptions): BoxOutlineGeometry

        /**
         * @property [dimensions] The width, depth, and height of the box stored in the x, y, and z coordinates of the `Cartesian3`, respectively.
         */
        interface FromDimensionsOptions {
            var dimensions: Cartesian3
        }

        /**
         * Creates an outline of a cube from the dimensions of an AxisAlignedBoundingBox.
         * ```
         * var aabb = AxisAlignedBoundingBox.fromPoints(Cartesian3.fromDegreesArray([
         *      -72.0, 40.0,
         *      -70.0, 35.0,
         *      -75.0, 30.0,
         *      -70.0, 30.0,
         *      -68.0, 40.0
         * ]));
         * var box = BoxOutlineGeometry.fromAxisAlignedBoundingBox(aabb);
         * ```
         * @param [boundingBox] A description of the AxisAlignedBoundingBox.
         * @see Online Documentation
         */
        fun fromAxisAlignedBoundingBox(boundingBox: AxisAlignedBoundingBox): BoxOutlineGeometry

        /**
         * 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: BoxOutlineGeometry,
            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 BoxOutlineGeometry instance if one was not provided.
         * @see Online Documentation
         */
        override fun unpack(
            array: Array,
            startingIndex: Int?,
            result: BoxOutlineGeometry?,
        ): BoxOutlineGeometry

        /**
         * Computes the geometric representation of an outline of a box, including its vertices, indices, and a bounding sphere.
         * @param [boxGeometry] A description of the box outline.
         * @return The computed vertices and indices.
         * @see Online Documentation
         */
        fun createGeometry(boxGeometry: BoxOutlineGeometry): Geometry?
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy