Table of Contents

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

q1 Quaternion

The rotation at alpha zero.

q2 Quaternion

The rotation at alpha one.

alpha float

The interpolation parameter, from zero to one.

Returns

Quaternion

The interpolated rotation.