anima_engine::path! [] [src]

macro_rules! path {
    ( $( $curve:expr ),* ) => { ... };
}

A macro useful for defining Bézier paths.

Examples

fn main() {
    let p = path!(
        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)
        ),
        bez!(
            (0.0, 0.0, 0.0),
            (0.0, 0.0, 0.0),
            (0.0, 0.0, 0.0)
        )
    );
}