fromCorners

fun fromCorners(minimum: Cartesian3, maximum: Cartesian3, result: AxisAlignedBoundingBox? = definedExternally): AxisAlignedBoundingBox(source)

Creates an instance of an AxisAlignedBoundingBox from its corners.

// Compute an axis aligned bounding box from the two corners.
const box = AxisAlignedBoundingBox.fromCorners(new Cartesian3(-1, -1, -1), new Cartesian3(1, 1, 1));

Return

The modified result parameter or a new AxisAlignedBoundingBox instance if one was not provided.

Parameters

minimum

The minimum point along the x, y, and z axes.

maximum

The maximum point along the x, y, and z axes.

result

The object onto which to store the result.

See also