Macro iron_shapes::simple_polygon [−][src]
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)]));