Method b3NLerp
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3NLerp(Quaternion, Quaternion, float)
Interpolates between two rotations and normalizes the result.
public static Quaternion b3NLerp(Quaternion q1, Quaternion q2, float alpha)Parameters
q1Quaternion-
The rotation at
alphazero. q2Quaternion-
The rotation at
alphaone. alphafloat-
The interpolation parameter, from zero to one.
Returns
- Quaternion
-
The interpolated rotation.