Open CASCADE Technology 7.8.0
|
Class perform linear interpolation (approximate rotation interpolation), result quaternion nonunit, its length lay between. sqrt(2)/2 and 1.0. More...
#include <gp_QuaternionNLerp.hxx>
Public Member Functions | |
gp_QuaternionNLerp () | |
Empty constructor,. | |
gp_QuaternionNLerp (const gp_Quaternion &theQStart, const gp_Quaternion &theQEnd) | |
Constructor with initialization. | |
void | Init (const gp_Quaternion &theQStart, const gp_Quaternion &theQEnd) |
Initialize the tool with Start and End values. | |
void | InitFromUnit (const gp_Quaternion &theQStart, const gp_Quaternion &theQEnd) |
Initialize the tool with Start and End unit quaternions. | |
void | Interpolate (Standard_Real theT, gp_Quaternion &theResultQ) const |
Set interpolated quaternion for theT position (from 0.0 to 1.0) | |
Static Public Member Functions | |
static gp_Quaternion | Interpolate (const gp_Quaternion &theQStart, const gp_Quaternion &theQEnd, Standard_Real theT) |
Compute interpolated quaternion between two quaternions. | |
Class perform linear interpolation (approximate rotation interpolation), result quaternion nonunit, its length lay between. sqrt(2)/2 and 1.0.
|
inline |
Empty constructor,.
|
inline |
Constructor with initialization.
|
inline |
Initialize the tool with Start and End values.
|
inline |
Initialize the tool with Start and End unit quaternions.
|
inlinestatic |
Compute interpolated quaternion between two quaternions.
theStart | first quaternion |
theEnd | second quaternion |
theT | normalized interpolation coefficient within 0..1 range, with 0 pointing to theStart and 1 to theEnd. |
|
inline |