Macro scad_tree::translate

source ·
macro_rules! translate {
    (v=[$x:expr, $y:expr, $z:expr], $($child:expr);+;) => { ... };
    ([$x:expr, $y:expr, $z:expr], $($child:expr);+;) => { ... };
}
Expand description

Translates children.

#params

v: The x, y, and z coordinates to translate by e.g. [1.0, 2.0, 3.0].

children: A list of Scad objects separated and ending with a semicolon.

expansion: A Scad struct literal.

#patterns:

translate!([‘x: f64’, ‘y: f64’, ‘z: f64’], ‘children: Scad’;);

translate!(v=[‘x: f64’, ‘y: f64’, ‘z: f64’], ‘children: Scad’;);