linestring2bezier

Crates.iolinestring2bezier
lib.rslinestring2bezier
version0.2.1
created_at2025-05-12 10:02:18.596484+00
updated_at2025-07-30 20:34:55.090006+00
descriptionFor converting geo_types::LineString to a cubic bezier spline.
homepagehttps://github.com/yvind/linestring2bezier
repositoryhttps://github.com/yvind/linestring2bezier
max_upload_size
id1670297
size21,329
Øyvind Hjermstad (yvind)

documentation

README

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.

Commit count: 13

cargo fmt