union

fun union(left: BoundingSphere, right: BoundingSphere, result: BoundingSphere? = definedExternally): BoundingSphere(source)

Computes a bounding sphere that contains both the left and right bounding spheres.

Return

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

Parameters

left

A sphere to enclose in a bounding sphere.

right

A sphere to enclose in a bounding sphere.

result

The object onto which to store the result.

See also