Crate kurbo

source ·
Expand description

A garden of data structures for manipulating 2D curves.

Modules

Common mathematical operations

Structs

A 2D affine transform.
A path that can Bézier segments up to cubic, possibly with multiple subpaths.
A trivial “curve” that is just a constant.
A single cubic Bézier segment.
A single line.
A single quadratic Bézier segment.
A rectangle.
A 2D vector.

Enums

The element of a Bézier path.
A segment of a Bézier path.

Constants

The maximum number of extrema that can be reported in the ParamCurveExtrema trait.

Traits

A curve parametrized by a scalar.
A parametrized curve that can have its arc length measured.
A parametrized curve that can have its signed area measured.
A parametrized curve that reports its curvature.
A differentiable parametrized curve.
A parametrized curve that reports its extrema.
A parametrized curve that reports the nearest point.