Macro glam::const_vec4[][src]

macro_rules! const_vec4 {
    ($fx4:expr) => { ... };
}

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