[][src]Macro bevy::math::const_vec2

macro_rules! const_vec2 {
    ($f32x2:expr) => { ... };
}

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]);