Macro iron_shapes::vector [−][src]
macro_rules! vector {
($x : expr, $y : expr) => { ... };
}
Expand description
Shorthand notation for creating a vector.
Example
use iron_shapes::prelude::*;
let v = vector!(1, 2);
assert_eq!(v, Vector::new(1, 2));