Macro nif::common::const_mat2 [−][src]
macro_rules! const_mat2 { ($col0 : expr, $col1 : expr) => { ... }; ($fx4 : expr) => { ... }; }
Expand description
Creates a Mat2
from two column vectors that can be used to initialize a constant value.
use glam::{const_mat2, Mat2}; const ZERO: Mat2 = const_mat2!([0.0; 4]); const IDENTITY: Mat2 = const_mat2!([1.0, 0.0], [0.0, 1.0]);