transform method

void transform (Matrix4 t)

Transform this by the transform t.

Implementation

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