Macro simplify_polyline::points
source · [−]macro_rules! points {
($t: ty, $(($x:expr,$y:expr)),*) => { ... };
}Expand description
Creates a &[Point] array, used for used for input and output for simplify. A type should be specified as the first argument that implements the ExtendedNumOps trait. Point values should be specified as length-2 tuples, where each value matches the input type, in (x, y) order.
Example
use simplify_polyline::*;
let points = points![f64, (1.0, 1.0), (2.0, 2.0), (3.0, 3.0)];