Macro glam::const_quat

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

Creates a Quat from x, y, z and w values that can be used to initialize a constant value.

use glam::{const_quat, Quat};
const IDENTITY: Quat = const_quat!([0.0, 0.0, 0.0, 1.0]);