transformWithoutScale

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

Applies a 4x4 affine transformation matrix to a bounding sphere where there is no scale The transformation matrix is not verified to have a uniform scale of 1. This method is faster than computing the general bounding sphere transform using BoundingSphere.transform.

const modelMatrix = Transforms.eastNorthUpToFixedFrame(positionOnEllipsoid);
const boundingSphere = new BoundingSphere();
const newBoundingSphere = BoundingSphere.transformWithoutScale(boundingSphere, modelMatrix);

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