@0b5vr/experimental
    Preparing search index...

    Class Quaternion

    A Quaternion.

    Index

    Constructors

    Properties

    elements: RawQuaternion

    Accessors

    Methods

    • Interpolate between this and given quaternion using normalized lerp. When the dot product of the two quaternions is negative, the given quaternion is negated to ensure the shortest path is taken.

      This should behave the same as Unity's Quaternion.LerpUnclamped.

      Parameters

      • b: Quaternion

        "to" quaternion

      • t: number

        How much do we want to rotate this to b

      Returns Quaternion

      The interpolated quaternion

    • Interpolate between two quaternions using normalized lerp. When the dot product of the two quaternions is negative, the second quaternion is negated to ensure the shortest path is taken.

      This should behave the same as Unity's Quaternion.LerpUnclamped.

      Parameters

      • a: Quaternion

        "from" quaternion

      • b: Quaternion

        "to" quaternion

      • t: number

        How much do we want to rotate the a to b

      Returns Quaternion

      The interpolated quaternion