linestring-0.0.4 has been yanked.
Work in progress
Anything in this API may will change without notice.
This crate will contain data structures and methods that deals with lines in 2d and 3d space.
There will be 3d and 2d implementations of:
- Line, a finite two-point struct (no rays)
- LineString, a sequence of points
- Ramer–Douglas-Peucker and Visvalingam-Whyatt line simplification algorithms.
- Aabb axis aligned bounding box
This will be implemented (feature gated) for cgmath, nalgebra and limited versions for mint and plain vector scalars (no transformations etc). More implementations could be added if required.
If you want to use this library in your cgmath project you add this to your Cargo.toml:
linestring = {version = "^0.0.4", features = ["impl-cgmath"]}
Same thing for the other flavours of 2d/3d containers:
linestring = {version = "^0.0.4", features = ["impl-nalgebra"]}
linestring = {version = "^0.0.4", features = ["impl-mint"]}
linestring = {version = "^0.0.4", features = ["impl-vec"]}