transform method

void transform(
  1. Matrix4 t
)

Transform this by the transform t.

Implementation

void transform(Matrix4 t) {
  _updateCenterAndHalfExtents();
  t
    ..transform3(_center)
    ..absoluteRotate(_halfExtents);
  _min
    ..setFrom(_center)
    ..sub(_halfExtents);
  _max
    ..setFrom(_center)
    ..add(_halfExtents);
}