applyMatrix4 method

BoundingSphere applyMatrix4(
  1. Matrix4 matrix
)

Transforms this bounding sphere with the given 4x4 transformation matrix.

Implementation

BoundingSphere applyMatrix4(Matrix4 matrix ) {
	center.applyMatrix4( matrix );
	radius = radius * matrix.getMaxScale();

	return this;
}