Compute the boolean intersection of two 2D shapes.
Returns only the region common to both shapes. Compound and multi-blueprint operands are decomposed recursively, with holes handled via complementary cut operations.
First operand.
Second operand.
The intersection shape, or null if the shapes do not overlap.
null
const overlap = intersect2D(circle, rectangle); Copy
const overlap = intersect2D(circle, rectangle);
intersect2D for the functional API.
Compute the boolean intersection of two 2D shapes.
Returns only the region common to both shapes. Compound and multi-blueprint operands are decomposed recursively, with holes handled via complementary cut operations.