Slerp Quaternion

Math
Both Server and Client
Both Mobile and PC

Quaternion spherical interpolation from A to B

Declaration

func SlerpQuaternion(valueA Quaternion, valueB Quaternion, valueT float) Quaternion
go

Parameters

Input

Name Type Description
ValueA Quaternion A Value
ValueB Quaternion B value
ValueT Float Interpolation progress, the value range is [0,1]. When the value is 0, it returns the A value, and when the value is 1, it returns the B value.

Return

Type Description
Quaternion The resulting quaternion