Skip to content

The native runtime for three.js: three.js, down to the metal. 45× smaller than Electron, on a Sony PS3, and path-traced at 60 fps on ray-tracing GPUs.

524 B
Raw Blame
//! 3D rotation types (re-exported from glam).
//!
//! This module provides type aliases for glam's quaternion types for consistency
//! with the naming convention used by other types in this crate.

/// A 3D rotation represented as a unit quaternion (f32 precision).
///
/// This is a direct re-export of `glam::Quat`.
pub type Rot3 = glam::Quat;

/// A 3D rotation represented as a unit quaternion (f64 precision).
///
/// This is a direct re-export of `glam::DQuat`.
#[cfg(feature = "f64")]
pub type DRot3 = glam::DQuat;