rotate method

void rotate(
  1. Matrix3 t
)

Rotate this by the rotation matrix t.

Implementation

void rotate(Matrix3 t) {
  _updateCenterAndHalfExtents();
  t.absoluteRotate2(_halfExtents);
  _min
    ..setFrom(_center)
    ..sub(_halfExtents);
  _max
    ..setFrom(_center)
    ..add(_halfExtents);
}