anima_engine::bez!
[−]
[src]
macro_rules! bez { ( ( $x1:expr, $y1:expr, $z1:expr ), ( $x2:expr, $y2:expr, $z2:expr ), ( $x3:expr, $y3:expr, $z3:expr ) ) => { ... }; ( ( $x1:expr, $y1:expr, $z1:expr ), ( $x2:expr, $y2:expr, $z2:expr ), ( $x3:expr, $y3:expr, $z3:expr ), ( $x4:expr, $y4:expr, $z4:expr ) ) => { ... }; }
A macro
useful for defining Bézier curves.
Examples
fn main() { let b = bez!( (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (0.0, 0.0, 0.0), (0.0, 0.0, 0.0) ); }