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