Contents

GLKQuaternionSlerp(_:_:_:)

Returns the spherical linear interpolation of two quaternions.

Declaration

func GLKQuaternionSlerp(_ quaternionStart: GLKQuaternion, _ quaternionEnd: GLKQuaternion, _ t: Float) -> GLKQuaternion

Parameters

  • quaternionStart:

    The starting point.

  • quaternionEnd:

    The ending point.

  • t:

    The interpolation factor.

Return Value

A new quaternion. When t=0, the result is the start quaternion. When t=1.0, the result is the end quaternion. For any other value of t, the result is a spherical linear interpolation between the two quaternions.

See Also

Performing Mathematical Operations on Quaternions