Macro glam::const_dmat4 [−][src]
macro_rules! const_dmat4 {
($col0 : expr, $col1 : expr, $col2 : expr, $col3 : expr) => { ... };
($fx16 : expr) => { ... };
}
Expand description
Creates a DMat4
from four column vectors that can be used to initialize a constant value.
use glam::{const_dmat4, DMat4};
const ZERO: DMat4 = const_dmat4!([0.0; 16]);
const IDENTITY: DMat4 = const_dmat4!(
[1.0, 0.0, 0.0, 0.0],
[0.0, 1.0, 0.0, 0.0],
[0.0, 0.0, 1.0, 0.0],
[0.0, 0.0, 0.0, 1.0]
);