Macro nif::common::const_dvec2 [−][src]
macro_rules! const_dvec2 { ($fx2 : expr) => { ... }; }
Expand description
Creates a DVec2
that can be used to initialize a constant value.
use glam::{const_dvec2, DVec2}; const ONE: DVec2 = const_dvec2!([1.0; 2]); const X: DVec2 = const_dvec2!([1.0, 0.0]);