Skip to main content

mat3

Macro mat3 

Source
macro_rules! mat3 {
    ($($arg:expr),*$(,)?) => { ... };
}
Expand description

Creates a 3x3 column major matrix from the provided arguments.

The macro accepts 3 column vectors as arguments.

ยงExamples

use ggmath::{Mat3, mat3, vec3};

let double: Mat3<f32> = mat3!(
    vec3!(2.0, 0.0, 0.0),
    vec3!(0.0, 2.0, 0.0),
    vec3!(0.0, 0.0, 2.0)
);