[][src]Macro pathtracer::node

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

initalize Nodes using a range of parameters.

Since the macro calls coordinate! it allows for type conversion, be aware that if your values can not be cast to i16. it is better to avoid these macro invocations.

Examples

These are all equal.


node!();
node!(coordinate!());
node!(0, 0);
node!("0,0", 0, 0);