Crate linestring2bezier

Crate linestring2bezier 

Source
Expand description

Approximate a geo_types::LineString with a cubic bezier spline

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

Structsยง

BezierSegment
Simple struct to represent a bezier segment If the Option is None then the segment is a simple straight line segment
BezierString
A BezierString is simply a vector of BezierSegments