Properties

Link copied to clipboard
open override val packedLength: Int

The number of elements used to pack the object into an array.

Functions

Link copied to clipboard
fun clone(box: OrientedBoundingBox, result: OrientedBoundingBox? = definedExternally): OrientedBoundingBox

Duplicates a OrientedBoundingBox instance.

Link copied to clipboard

Computes the eight corners of an oriented bounding box. The corners are ordered by (-X, -Y, -Z), (-X, -Y, +Z), (-X, +Y, -Z), (-X, +Y, +Z), (+X, -Y, -Z), (+X, -Y, +Z), (+X, +Y, -Z), (+X, +Y, +Z).

Link copied to clipboard
fun computePlaneDistances(box: OrientedBoundingBox, position: Cartesian3, direction: Cartesian3, result: Interval? = definedExternally): Interval

The distances calculated by the vector from the center of the bounding box to position projected onto direction.

Link copied to clipboard

Computes a transformation matrix from an oriented bounding box.

Link copied to clipboard

Computes the estimated distance squared from the closest point on a bounding box to a point.

Link copied to clipboard

Compares the provided OrientedBoundingBox componentwise and returns true if they are equal, false otherwise.

Link copied to clipboard
fun fromPoints(positions: ReadonlyArray<Cartesian3>? = definedExternally, result: OrientedBoundingBox? = definedExternally): OrientedBoundingBox

Computes an instance of an OrientedBoundingBox of the given positions. This is an implementation of Stefan Gottschalk's Collision Queries using Oriented Bounding Boxes solution (PHD thesis). Reference: http://gamma.cs.unc.edu/users/gottschalk/main.pdf

Link copied to clipboard
fun fromRectangle(rectangle: Rectangle, minimumHeight: Double? = definedExternally, maximumHeight: Double? = definedExternally, ellipsoid: Ellipsoid? = definedExternally, result: OrientedBoundingBox? = definedExternally): OrientedBoundingBox

Computes an OrientedBoundingBox that bounds a Rectangle on the surface of an Ellipsoid. There are no guarantees about the orientation of the bounding box.

Link copied to clipboard
fun fromTransformation(transformation: Matrix4, result: OrientedBoundingBox? = definedExternally): OrientedBoundingBox

Computes an OrientedBoundingBox that bounds an affine transformation.

Link copied to clipboard

Determines which side of a plane the oriented bounding box is located.

Link copied to clipboard

Determines whether or not a bounding box is hidden from view by the occluder.

Link copied to clipboard
open override fun pack(value: OrientedBoundingBox, array: ReadonlyArray<Double>, startingIndex: Int?): ReadonlyArray<Double>

Stores the provided instance into the provided array.

Link copied to clipboard
open override fun unpack(array: ReadonlyArray<Double>, startingIndex: Int?, result: OrientedBoundingBox?): OrientedBoundingBox

Retrieves an instance from a packed array.