A template class to create spline key objects for the spline interpolation classes. More...
#include "murl_math_spline_base.h"
Public Types | |
using | ValueType = DataType |
The template parameter value type. | |
Public Member Functions | |
SplineKey () | |
The default constructor. | |
SplineKey (Real time, const DataType &value) | |
The constructor including time and value. More... | |
Bool | IsEqual (const SplineKey &other) const |
Compare the animation key to another one. More... | |
bool | operator== (const SplineKey &rhs) const |
The "equal to" comparison operator, calls IsEqual(). More... | |
bool | operator!= (const SplineKey &rhs) const |
The "not equal to" comparison operator, calls IsEqual(). More... | |
Public Attributes | |
Real | mTime |
The time of the key. | |
DataType | mValue |
The value of the key. | |
Detailed Description
template<class DataType>
class Murl::Math::SplineKey< DataType >
A template class to create spline key objects for the spline interpolation classes.
Constructor & Destructor Documentation
◆ SplineKey()
|
inline |
The constructor including time and value.
- Parameters
-
time The time for the key in seconds. value The value for the key.
Member Function Documentation
◆ IsEqual()
|
inline |
Compare the animation key to another one.
- Parameters
-
other The key to compare.
- Returns
- true if both keys are identical.
References Murl::Math::SplineKey< DataType >::mTime, and Murl::Math::SplineKey< DataType >::mValue.
Referenced by Murl::Math::SplineKey< DataType >::operator!=(), and Murl::Math::SplineKey< DataType >::operator==().
◆ operator==()
|
inline |
The "equal to" comparison operator, calls IsEqual().
- Parameters
-
rhs The right hand side key to compare.
- Returns
- true if both keys are identical.
References Murl::Math::SplineKey< DataType >::IsEqual().
◆ operator!=()
|
inline |
The "not equal to" comparison operator, calls IsEqual().
- Parameters
-
rhs The right hand side key to compare.
- Returns
- true if both keys are not identical.
References Murl::Math::SplineKey< DataType >::IsEqual().
The documentation for this class was generated from the following file:
- murl_math_spline_base.h