[][src]Crate kurbo

A garden of data structures for manipulating 2D curves.

Modules

common

Common mathematical operations

Structs

Affine

A 2D affine transform.

BezPath

A path that can Bézier segments up to cubic, possibly with multiple subpaths.

ConstVec2

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.

QuadBez

A single quadratic Bézier segment.

Rect

A rectangle.

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 ParamCurveExtrema trait.

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.