Macro glam::const_vec3
source · macro_rules! const_vec3 { ($fx3:expr) => { ... }; }
Expand description
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: Vec3 = const_vec3!([1.0, 0.0, 0.0]);