Slerp Vector3

Math
Both Server and Client
Both Mobile and PC

Perform spherical interpolation from the 3D vector A to vector B for smooth rotation

Declaration

func SlerpVector3(valueA Vector3, valueB Vector3, valueT float) Vector3
go

Parameters

Input

Name Type Description
ValueA Vector3 A Value
ValueB Vector3 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
Vector3 The resulting quaternion