rotate method

void rotate (Matrix4 t)

Rotate this by the rotation matrix t.

Implementation

void rotate(Matrix4 t) {
  final Vector3 center = new Vector3.zero();
  final Vector3 halfExtents = new Vector3.zero();
  copyCenterAndHalfExtents(center, halfExtents);
  t.absoluteRotate(halfExtents);
  _min
    ..setFrom(center)
    ..sub(halfExtents);
  _max
    ..setFrom(center)
    ..add(halfExtents);
}