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

Shorthand notation for creating a simple polygon.

Example

use iron_shapes::prelude::*;
let p = simple_rpolygon!((0, 0), (1, 0), (1, 1), (0, 1));
assert_eq!(Some(p), SimpleRPolygon::try_new(vec![(0, 0), (1, 0), (1, 1), (0, 1)]));