Module prelude

Source

Re-exports§

pub use crate::LinestringError;

Structs§

Line2
A 2d line
Line3
A 3d line
SimpleAffine
This is a simple but efficient affine transformation object. It can pan, zoom and flip points around center axis but not rotate. It does not handle vector transformation, only points.
VoronoiParabolicArc
A parabolic arc as used in https://github.com/eadf/boostvoronoi.rs This struct contains the parameters for the arc + the functionality to convert it to a LineString2 or LineString3.

Traits§

Approx
A workaround for Rust’s limitations where external traits cannot be implemented for external types.
LineString2
A 2D polyline representation with some operations.
LineString3

Functions§

divide_into_shapes
Divides the indices into continuous shapes of vertex indices, removing duplicated edges.
indexed_simplify_rdp_2d
Simplify a polyline using the Ramer–Douglas–Peucker algorithm.
indexed_simplify_rdp_3d
Simplify a polyline using the Ramer–Douglas–Peucker algorithm.