rotate method

void rotate (Matrix3 t)

Rotate this by the rotation matrix t.

Implementation

void rotate(Matrix3 t) {
  final Vector2 center = new Vector2.zero();
  final Vector2 halfExtents = new Vector2.zero();
  copyCenterAndHalfExtents(center, halfExtents);
  t.absoluteRotate2(halfExtents);
  _min
    ..setFrom(center)
    ..sub(halfExtents);
  _max
    ..setFrom(center)
    ..add(halfExtents);
}