Axis-aligned rectangle. Fast path for the (very common) case where the shape is just a rect — preserves O(1) bounds and hit-test, avoids the polygon kernel entirely. Promote to PolygonPath only when the shape grows beyond what a rect can express.
PolygonPath
Axis-aligned rectangle. Fast path for the (very common) case where the shape is just a rect — preserves O(1) bounds and hit-test, avoids the polygon kernel entirely. Promote to
PolygonPathonly when the shape grows beyond what a rect can express.