fromOrientedBoundingBox

fun fromOrientedBoundingBox(orientedBoundingBox: OrientedBoundingBox, result: BoundingSphere? = definedExternally): BoundingSphere(source)

Computes a tight-fitting bounding sphere enclosing the provided oriented bounding box.

Return

The modified result parameter or a new BoundingSphere instance if none was provided.

Parameters

orientedBoundingBox

The oriented bounding box.

result

The object onto which to store the result.

See also