Quaternion
Represents a quaternion for 3D rotations.
Quaternions are used to represent rotations in 3D space without the singularities of Euler angles. This class extends Vector4 where x, y, z represent the vector part and w represents the scalar part.
The quaternion is typically normalized (unit length) for rotation representation. This class is designed for compatibility with AR frameworks like ARCore.
Constructors
Quaternion
Link copied to clipboard
fun Quaternion()
Content copied to clipboard
Creates an identity quaternion (no rotation).
Quaternion
Link copied to clipboard
Creates a copy of another quaternion.
Quaternion
Link copied to clipboard
Creates a quaternion with specific component values.
Types
Functions
describe Contents
Link copied to clipboard
set
Link copied to clipboard
Sets the component at the specified index.
write To Parcel
Link copied to clipboard