Documentation
    Preparing search index...

    Function validateQuaternionDocument

    • Validates a value as four finite numbers.

      The quaternion is not renormalized: a document stores what it was given and restores it bit for bit, so a round trip cannot quietly change a rotation.

      Parameters

      • value: unknown

        the candidate { x, y, z, w }

      • path: string

        a dotted path used in error messages

      Returns QuaternionDocument

      the frozen, canonical quaternion document

      TypeError if a component is missing or not finite