| Crates.io | linestring2bezier |
| lib.rs | linestring2bezier |
| version | 0.2.1 |
| created_at | 2025-05-12 10:02:18.596484+00 |
| updated_at | 2025-07-30 20:34:55.090006+00 |
| description | For converting geo_types::LineString |
| homepage | https://github.com/yvind/linestring2bezier |
| repository | https://github.com/yvind/linestring2bezier |
| max_upload_size | |
| id | 1670297 |
| size | 21,329 |
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.