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