API Reference > OdGe Classes > OdGeQuaternion Class > OdGeQuaternion Methods > OdGeQuaternion::slerp Method
OdGeQuaternion::slerp Method
Syntax
C++
OdGeQuaternion slerp(OdGeQuaternion& q, double t, bool bUseShortestPath);
Parameters 
Description 
OdGeQuaternion& q 
[in] second quaternion to be interpolated between (first is this quaternion)  
double t 
[in] a scalar between 0.0 (at p) and 1.0 (at q)  
bool bUseShortestPath 
[in] boolean that indicates whether to compute quaternions that constitute the shortest possible arc on a four-dimensional unit sphere. 

Performs spherical linear interpolation, introduced by Ken Shoemake in the context of quaternion interpolation. It refers to constant-speed motion along a unit-radius great circle arc, given the ends and an interpolation parameter between 0 and 1 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.