Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdGeQuaternion::slerp Method
Syntax
C++
OdGeQuaternion slerp(OdGeQuaternion& q, double t, bool bUseShortestPath);

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 

 

Parameters
Description
q
[in] second quaternion to be interpolated between (first is this quaternion)
t
[in] a scalar between 0.0 (at p) and 1.0 (at q)
bUseShortestPath
[in] boolean that indicates whether to compute quaternions that constitute the shortest possible arc on a four-dimensional unit sphere.
Copyright © 2002-2022. Open Design Alliance All rights reserved.