#include <gradientmath.h>
This class is a data container for gradient knots. Each knot is defined by an index and a position in a 1D range.
| T_Float | The type of real-valued position, recommended are Float, Float32 and Float64. | 
| T_Int | The type of index, recommended are Int, Int32 and Int64. We recommend to match the bitdepth of index and position. | 
Public Member Functions | |
| IndexedGradientKnot (T_Int index, T_Float value) | |
| Bool | operator< (const IndexedGradientKnot &other) const | 
Public Attributes | |
| T_Int | _index | 
| T_Float | _position | 
| IndexedGradientKnot | ( | T_Int | index, | 
| T_Float | value | ||
| ) | 
Constructs a gradient knot.
| [in] | index | The index of the knot. | 
| [in] | value | The position of the knot. | 
| Bool operator< | ( | const IndexedGradientKnot< T_Float, T_Int > & | other | ) | const | 
Lesser comparison of two knots. First criterion is the position of the knots. If the knot positions match ordinal comparison of the indices is done.
| [in] | other | The knot to compare with. | 
| T_Int _index | 
| T_Float _position |