class Geometry · Computations

Within

An area: a polygon, a circle, or both (then the area is where they overlap). Used by Separate.circles (SeparateCirclesOptions.within: the circles stay inside).

One field per kind of area, as the kind can't be told from the shape itself.

Properties

circleoptional

circle?: Circle

A circle.

polygonoptional

polygon?: Polygon

A polygon; a box, rectangle or triangle works as well. A polygon that is not convex is replaced by its convex hull (circles may then sit in its dents).