Macro cavalier_contours::pline_open
source · macro_rules! pline_open { ($( $x:expr ),* $(,)?) => { ... }; }
Expand description
Construct a open polyline with the vertexes given as a list of (x, y, bulge) tuples.
§Examples
let polyline = pline_open![(0.0, 1.0, 1.0), (2.0, 0.0, 0.0)];
assert!(!polyline.is_closed());
assert_eq!(polyline[0], PlineVertex::new(0.0, 1.0, 1.0));
assert_eq!(polyline[1], PlineVertex::new(2.0, 0.0, 0.0));