Macro glam::const_vec4 [−][src]
Creates a Vec4
that can be used to initialize a constant value.
use glam::{const_vec4, Vec4}; const ONE: Vec4 = const_vec4!([1.0; 4]); const X: Vec4 = const_vec4!([1.0, 0.0, 0.0, 0.0]);
Creates a Vec4
that can be used to initialize a constant value.
use glam::{const_vec4, Vec4}; const ONE: Vec4 = const_vec4!([1.0; 4]); const X: Vec4 = const_vec4!([1.0, 0.0, 0.0, 0.0]);