computeBounds method
Implementation
AABB computeBounds(Mat2D relativeTo) {
var boundsPaths = paths.where((path) => path.hasBounds);
if (boundsPaths.isEmpty) {
return AABB();
}
var path = boundsPaths.first;
AABB localBounds = path.preciseComputeBounds(
transform: Mat2D.multiply(
Mat2D(),
relativeTo,
path.pathTransform,
),
);
for (final path in paths.skip(1)) {
AABB.combine(
localBounds,
localBounds,
path.preciseComputeBounds(
transform: Mat2D.multiply(
Mat2D(),
relativeTo,
path.pathTransform,
),
),
);
}
return localBounds;
}