[][src]Macro bevy_math::const_vec3

macro_rules! const_vec3 {
    ($f32x3:expr) => { ... };
}

Creates a Vec3 that can be used to initialize a constant value.

use glam::{const_vec3, Vec3};
const ONE: Vec3 = const_vec3!([1.0; 3]);
const X_AXIS: Vec3 = const_vec3!([1.0, 0.0, 0.0]);