Open CASCADE Technology  7.4.0
Public Member Functions | Static Public Member Functions
gp_QuaternionNLerp Class Reference

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,. More...
 
 gp_QuaternionNLerp (const gp_Quaternion &theQStart, const gp_Quaternion &theQEnd)
 Constructor with initialization. More...
 
void Init (const gp_Quaternion &theQStart, const gp_Quaternion &theQEnd)
 Initialize the tool with Start and End values. More...
 
void InitFromUnit (const gp_Quaternion &theQStart, const gp_Quaternion &theQEnd)
 Initialize the tool with Start and End unit quaternions. More...
 
void Interpolate (Standard_Real theT, gp_Quaternion &theResultQ) const
 Set interpolated quaternion for theT position (from 0.0 to 1.0) More...
 

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. More...
 

Detailed Description

Class perform linear interpolation (approximate rotation interpolation), result quaternion nonunit, its length lay between. sqrt(2)/2 and 1.0.

Constructor & Destructor Documentation

◆ gp_QuaternionNLerp() [1/2]

gp_QuaternionNLerp::gp_QuaternionNLerp ( )
inline

Empty constructor,.

◆ gp_QuaternionNLerp() [2/2]

gp_QuaternionNLerp::gp_QuaternionNLerp ( const gp_Quaternion theQStart,
const gp_Quaternion theQEnd 
)
inline

Constructor with initialization.

Member Function Documentation

◆ Init()

void gp_QuaternionNLerp::Init ( const gp_Quaternion theQStart,
const gp_Quaternion theQEnd 
)
inline

Initialize the tool with Start and End values.

◆ InitFromUnit()

void gp_QuaternionNLerp::InitFromUnit ( const gp_Quaternion theQStart,
const gp_Quaternion theQEnd 
)
inline

Initialize the tool with Start and End unit quaternions.

◆ Interpolate() [1/2]

static gp_Quaternion gp_QuaternionNLerp::Interpolate ( const gp_Quaternion theQStart,
const gp_Quaternion theQEnd,
Standard_Real  theT 
)
inlinestatic

Compute interpolated quaternion between two quaternions.

Parameters
theStartfirst quaternion
theEndsecond quaternion
theTnormalized interpolation coefficient within 0..1 range, with 0 pointing to theStart and 1 to theEnd.

◆ Interpolate() [2/2]

void gp_QuaternionNLerp::Interpolate ( Standard_Real  theT,
gp_Quaternion theResultQ 
) const
inline

Set interpolated quaternion for theT position (from 0.0 to 1.0)


The documentation for this class was generated from the following file: