AABB transform(Mat2D matrix) { return AABB.fromPoints([ minimum, Vec2D.fromValues(maximum.x, minimum.y), maximum, Vec2D.fromValues(minimum.x, maximum.y) ], transform: matrix); }