XX CMake Package
Loading...
Searching...
No Matches
XX::Range::Mapper Class Reference

map a value from one range to another More...

#include <XXRange.h>

Detailed Description

map a value from one range to another

Public Member Functions

 Mapper (const float &minInput, const float &maxInput, const float &minOutput, const float &maxOutput)
float operator() (const float &input) const
void setMinInput (const float &value)
void setMaxInput (const float &value)
void setMinOutput (const float &value)
void setMaxOutput (const float &value)

Constructor & Destructor Documentation

◆ Mapper()

XX::Range::Mapper::Mapper ( const float & minInput,
const float & maxInput,
const float & minOutput,
const float & maxOutput )

Member Function Documentation

◆ operator()()

float XX::Range::Mapper::operator() ( const float & input) const

◆ setMaxInput()

void XX::Range::Mapper::setMaxInput ( const float & value)

◆ setMaxOutput()

void XX::Range::Mapper::setMaxOutput ( const float & value)

◆ setMinInput()

void XX::Range::Mapper::setMinInput ( const float & value)

◆ setMinOutput()

void XX::Range::Mapper::setMinOutput ( const float & value)

The documentation for this class was generated from the following file: