IndexedGradientKnot< T_Float, T_Int > Struct Template Reference

#include <gradientmath.h>

详细描述

template<typename T_Float, typename T_Int>
struct maxon::IndexedGradientKnot< T_Float, T_Int >

This class is a data container for gradient knots. Each knot is defined by an index and a position in a 1D range.

Template Parameters
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.

公共成员函数

  IndexedGradientKnot (T_Int index, T_Float value)
Bool   operator< (const IndexedGradientKnot &other) const

Public Attributes

T_Int  _index
T_Float  _position

构造函数 & 析构函数文档编制

◆  IndexedGradientKnot()

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.

成员函数文档编制

◆  operator<()

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.
返回
True if the knot is smaller, false otherwise.

Member Data Documentation

◆  _index

T_Int _index

◆  _position

T_Float _position