Macro glam::const_dvec4[][src]

macro_rules! const_dvec4 {
    ($fx4 : expr) => { ... };
}
Expand description

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

use glam::{const_dvec4, DVec4};
const ONE: DVec4 = const_dvec4!([1.0; 4]);
const X: DVec4 = const_dvec4!([1.0, 0.0, 0.0, 0.0]);