Skip to content

yvind/LineString2Bezier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crates.io version docs.rs docs

For converting geo_types::LineString<T: CoordFloat> into a piecewise cubic bezier, given as a Vec<BezierSegment<T>>.

BezierSegment<T: CoordFloat> has fields:
start: geo_types::Coord<T>
handles: Option<(geo_types::Coord<T>, geo_types::Coord<T>)>
end: geo_types::Coord<T>

The handles field is None if the segment is a straight line, otherwise the segment is a Cubic Bezier.

About

Convert a geo_types::LineString<T: CoordFloat> into a piecewise cubic bezier

Resources

License

Stars

Watchers

Forks

Languages