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