Macro rfw_math::const_dvec3[][src]

macro_rules! const_dvec3 {
    ($fx3:expr) => { ... };
}
Expand description

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

use glam::{const_dvec3, DVec3};
const ONE: DVec3 = const_dvec3!([1.0; 3]);
const X: DVec3 = const_dvec3!([1.0, 0.0, 0.0]);