Function lerp

  • Performs linear interpolation on two quaternions. Given quaternions a and b and interpolation coefficient t, returns a + t * (b - a).

    Type Parameters

    Parameters

    • a: BaseArgType

      Operand quaternion.

    • b: BaseArgType

      Operand quaternion.

    • t: number

      Interpolation coefficient.

    • Optional dst: T

      quaternion to hold result. If not passed in a new one is created.

    Returns T

    The linear interpolated result.