[−][src]Macro bevy_math::const_vec2
Creates a Vec2
that can be used to initialize a constant value.
use glam::{const_vec2, Vec2}; const ONE: Vec2 = const_vec2!([1.0; 2]); const X_AXIS: Vec2 = const_vec2!([1.0, 0.0]);
Creates a Vec2
that can be used to initialize a constant value.
use glam::{const_vec2, Vec2}; const ONE: Vec2 = const_vec2!([1.0; 2]); const X_AXIS: Vec2 = const_vec2!([1.0, 0.0]);