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

Shorthand notation for creating a simple polygon.

Example

use iron_shapes::prelude::*;
let p = simple_polygon!((0, 0), (1, 0), (1, 1));
assert_eq!(p, SimplePolygon::from(vec![(0, 0), (1, 0), (1, 1)]));