Macro glam::const_mat3[][src]

macro_rules! const_mat3 {
    ($col0:expr, $col1:expr, $col2:expr) => { ... };
    ($fx9:expr) => { ... };
}

Creates a Mat3 from three column vectors that can be used to initialize a constant value.

use glam::{const_mat3, Mat3};
const ZERO: Mat3 = const_mat3!([0.0; 9]);
const IDENTITY: Mat3 = const_mat3!([1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]);