[−]Module piet_common::kurbo
A garden of data structures for manipulating 2D curves.
Modules
| common | Common mathematical operations |
Structs
| Affine | A 2D affine transform. |
| Arc | A single arc segment. |
| BezPath | A path that can Bézier segments up to cubic, possibly with multiple subpaths. |
| Circle | A circle. |
| ConstPoint | A trivial "curve" that is just a constant. |
| CubicBez | A single cubic Bézier segment. |
| Line | A single line. |
| LinePathIter | An iterator yielding the path for a single line. |
| Point | A 2d point. |
| QuadBez | A single quadratic Bézier segment. |
| Rect | A rectangle. |
| Size | A 2d size. |
| SvgArc | A single SVG arc segment. |
| Vec2 | A 2D vector. |
Enums
| PathEl | The element of a Bézier path. |
| PathSeg | A segment of a Bézier path. |
| SvgParseError |
Constants
| MAX_EXTREMA | The maximum number of extrema that can be reported in the |
Traits
| ParamCurve | A curve parametrized by a scalar. |
| ParamCurveArclen | A parametrized curve that can have its arc length measured. |
| ParamCurveArea | A parametrized curve that can have its signed area measured. |
| ParamCurveCurvature | A parametrized curve that reports its curvature. |
| ParamCurveDeriv | A differentiable parametrized curve. |
| ParamCurveExtrema | A parametrized curve that reports its extrema. |
| ParamCurveNearest | A parametrized curve that reports the nearest point. |
| Shape | A generic trait for open and closed shapes. |