macro_rules! pline_closed {
    ($( $x:expr ),* $(,)?) => { ... };
}
Expand description

Construct a closed polyline with the vertexes given as a list of (x, y, bulge) tuples.

§Examples

let polyline = pline_closed![(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));