Macro iron_shapes::point[][src]

macro_rules! point {
    ($x:expr, $y:expr) => { ... };
}

Shorthand notation for creating a point.

Example

use iron_shapes::prelude::*;
let p = point!(1, 2);
assert_eq!(p, Point::new(1, 2));