[−][src]Macro bevy_math::const_vec4
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_AXIS: 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_AXIS: Vec4 = const_vec4!([1.0, 0.0, 0.0, 0.0]);