![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cValueRange.h>
Public Member Functions | |
cValueRange (TYPE tLo=cTypeLimit< TYPE >::k_Min, TYPE tHi=cTypeLimit< TYPE >::k_Min) | |
void | InitX (TYPE nVal=cTypeLimit< TYPE >::k_Min) |
bool | isRangeValid () const |
TYPE | GetLinearX (TYPE nVal2, TYPE nRange2) const |
TYPE | GetLinearI (int nVal2, int nRange2=1000) const |
![]() | |
TYPE | get_Min () const |
TYPE | get_Max () const |
TYPE | get_Avg () const |
TYPE | GetClampValue (TYPE nVal) const |
bool | IsInsideI (TYPE nVal) const |
bool | IsInsideX (TYPE nVal) const |
TYPE | get_RangeI () const |
TYPE | get_RangeX () const |
TYPE | GetLinear1 (float fOne) const |
int | GetSpinValueI (int iVal) const |
void | SetZero () |
void | put_Min (TYPE iLo) |
void | put_Max (TYPE iHi) |
void | SetRange (TYPE iLo, TYPE iHi) |
void | NormalizeRange () |
void | UnionValue (TYPE nVal) |
bool | IsRangeOverlapI (const THIS_t &x) const |
void | SetUnionRange (const THIS_t &x) |
Additional Inherited Members | |
![]() | |
TYPE | m_Lo |
low range value. More... | |
TYPE | m_Hi |
inclusive high side of range. int size = (hi-lo)+1, float size = hi-lo ?? weird. More... | |
Simple linearity range from m_Lo to m_Hi. Similar to cStreamProgressT<>
|
inline |
|
inline |
As nVal2 is to nRange2
|
inline |
As nVal2 is to nRange2
|
inline |
|
inline |
Has been set yet ?