Skip to main content

Crate linestring2bezier

Crate linestring2bezier 

Source
Expand description

Approximate a LineString with a cubic bezier spline BezierString or approximate a BezierString with a LineString

Pass the line_string and a maximum allowed error to BezierString::from_line_string The error is the maximum distance between the line_string and the bezier spline evaluated at the line_string vertices and at the middle point between the vertices

Structs§

BezierCurve
Simple struct to represent a cubic bezier curve
BezierString
A BezierString is simply a vector of BezierSegments

Enums§

BezierSegment
A BezierSegment is either a straight Line or a BezierCurve
Error
Error enum for the crate