Open CASCADE Technology
7.2.0
|
Linear interpolation tool for transformation defined by gp_Trsf. More...
#include <gp_TrsfNLerp.hxx>
Public Member Functions | |
NCollection_Lerp () | |
Empty constructor. More... | |
NCollection_Lerp (const gp_Trsf &theStart, const gp_Trsf &theEnd) | |
Main constructor. More... | |
void | Init (const gp_Trsf &theStart, const gp_Trsf &theEnd) |
Initialize values. More... | |
void | Interpolate (double theT, gp_Trsf &theResult) const |
Compute interpolated value between two values. More... | |
Linear interpolation tool for transformation defined by gp_Trsf.
In general case, there is a no well-defined interpolation between arbitrary transformations, because desired transient values might vary depending on application needs.
This tool performs independent interpolation of three logical transformation parts - rotation (using gp_QuaternionNLerp), translation and scale factor. Result of such interpolation might be not what application expects, thus this tool might be considered for simple cases or for interpolating between small intervals.
|
inline |
Empty constructor.
|
inline |
Main constructor.
|
inline |
Initialize values.
|
inline |
Compute interpolated value between two values.
theT | normalized interpolation coefficient within [0, 1] range, with 0 pointing to first value and 1 to the second value. |
theResult | [out] interpolated value |