transform

fun transform(sphere: BoundingSphere, transform: Matrix4, result: BoundingSphere? = definedExternally): BoundingSphere(source)

Applies a 4x4 affine transformation matrix to a bounding sphere.

Return

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

Parameters

sphere

The bounding sphere to apply the transformation to.

transform

The transformation matrix to apply to the bounding sphere.

result

The object onto which to store the result.

See also