macro_rules! mat2 {
($($arg:expr),*$(,)?) => { ... };
}Expand description
Creates a 2x2 column major matrix from the provided arguments.
The macro accepts 2 column vectors as arguments.
ยงExamples
use ggmath::{Mat2, mat2, vec2};
let double: Mat2<f32> = mat2!(vec2!(2.0, 0.0), vec2!(0.0, 2.0));