identity

val identity: Quaternion

Returns the identity quaternion (0, 0, 0, 1) representing no rotation.

This is the quaternion equivalent of the identity matrix for rotations. When applied to any vector, it leaves the vector unchanged.

Common uses:

  • Initializing rotation values

  • Representing objects with no rotation

  • Default orientation in coordinate systems

  • Starting point for rotation interpolation

Return

A new identity quaternion (0, 0, 0, 1)