Macro rfw_math::const_ivec2[][src]

macro_rules! const_ivec2 {
    ($ix2:expr) => { ... };
}
Expand description

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

use glam::{const_ivec2, IVec2};
const ONE: IVec2 = const_ivec2!([1; 2]);
const X: IVec2 = const_ivec2!([1, 0]);