applyMatrix4 method

BoundingSphere applyMatrix4(
  1. Matrix4 matrix
)

matrix - the Matrix4 to apply

Transforms this sphere with the provided Matrix4.

Implementation

BoundingSphere applyMatrix4(Matrix4 matrix) {
  center.applyMatrix4(matrix);

  radius = radius * matrix.getMaxScaleOnAxis();

  return this;
}