expand

fun expand(sphere: BoundingSphere, point: Cartesian3, result: BoundingSphere? = definedExternally): BoundingSphere(source)

Computes a bounding sphere by enlarging the provided sphere to contain the provided point.

Return

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

Parameters

sphere

A sphere to expand.

point

A point to enclose in a bounding sphere.

result

The object onto which to store the result.

See also