Companion

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(rectangle: BoundingRectangle, result: BoundingRectangle? = definedExternally): BoundingRectangle

Duplicates a BoundingRectangle instance.

Link copied to clipboard
fun equals(left: BoundingRectangle? = definedExternally, right: BoundingRectangle? = definedExternally): Boolean

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

Link copied to clipboard
fun expand(rectangle: BoundingRectangle, point: Cartesian2, result: BoundingRectangle? = definedExternally): BoundingRectangle

Computes a bounding rectangle by enlarging the provided rectangle until it contains the provided point.

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

Computes a bounding rectangle enclosing the list of 2D points. The rectangle is oriented with the corner at the bottom left.

Link copied to clipboard
fun fromRectangle(rectangle: Rectangle, projection: Any? = definedExternally, result: BoundingRectangle? = definedExternally): BoundingRectangle

Computes a bounding rectangle from a rectangle.

Link copied to clipboard

Determines if two rectangles intersect.

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

Stores the provided instance into the provided array.

Link copied to clipboard
fun union(left: BoundingRectangle, right: BoundingRectangle, result: BoundingRectangle? = definedExternally): BoundingRectangle

Computes a bounding rectangle that is the union of the left and right bounding rectangles.

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

Retrieves an instance from a packed array.