class Core::LinearInterpolator
Overview
Linear conversion between value range and normalized domain. More…
#include <coreinterpolator.h> class LinearInterpolator: public Core::Interpolator { public: // construction LinearInterpolator(float minRange = 0, float maxRange = 1); // methods virtual float normalizedToRange(float normalized) const; virtual float rangeToNormalized(float value) const; };
Inherited Members
public: // methods CStringPtr getName() const; void setName(CStringPtr _name); float getMinRange() const; float getMaxRange() const; float getMidRange() const; virtual void setRange(float minRange, float maxRange, float midRange = 1.f); virtual float normalizedToRange(float normalized) const; virtual float rangeToNormalized(float value) const;
Detailed Documentation
Linear conversion between value range and normalized domain.
Methods
virtual float normalizedToRange(float normalized) const
Convert from normalized domain [0..1] to value range [min..max].
virtual float rangeToNormalized(float value) const
Convert from value range [min..max] to normalized domain [0..1].