macro_rules! const_vec2 {
    ($fx2:expr) => { ... };
}
Expand description

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

use glam::{const_vec2, Vec2};
const ONE: Vec2 = const_vec2!([1.0; 2]);
const X: Vec2 = const_vec2!([1.0, 0.0]);