Skip to main content

Module path

Module path 

Source
Expand description

Path representation.

Paths are stored as a verb stream with a parallel point buffer rather than as an enum-per-segment vector. Tessellation walks both linearly, and keeping points contiguous means the walk touches one cache line per few segments instead of chasing a pointer per segment.

Structs§

Path
A path: a verb stream plus the points those verbs consume.
PathBuilder
Accumulates verbs and points into a Path.
Rect
An axis-aligned bounding box.

Enums§

Convexity
Whether a subpath is convex, which selects the fill strategy.
FillRule
How overlapping subpaths combine when filling.
Verb
A path segment operator.

Constants§

MAX_COORDINATE
The largest coordinate magnitude the tessellator will accept.

Functions§

polygon_convexity
Classify a polygon by the consistency of its turn directions.