Scanframe DevOps Trial App 0.1.0
Functions
MySpace Namespace Reference

Functions

template<class T , class S >
auto calculateOffset (T value, T min_val, T max_val, S len, bool clip) -> S
 Calculates the offset for a given range and set point.
 
template<class T >
auto clip (const T value, const T min_val, const T max_val) -> T
 Returns clipped value of v between a and b where a < b.
 

Detailed Description

Just a file and namespace to demonstrate the Doxygen manual generation.

Go to the Main page

Function Documentation

◆ calculateOffset()

template<class T , class S >
auto MySpace::calculateOffset ( value,
min_val,
max_val,
len,
bool  clip 
) -> S

Calculates the offset for a given range and set point.

Template Parameters
TType of the passed arguments for scaling.
SThe type of the to be scaled argument.
Parameters
valueValue in the range.
min_valMinimum value of the range.
max_valMaximum value of the range.
lenLength to be scaled according the value and range.
clipDetermines if the length needs to be clipped withing the set range.
Returns
Resulted scaled value.

◆ clip()

template<class T >
auto MySpace::clip ( const T  value,
const T  min_val,
const T  max_val 
) -> T
inline

Returns clipped value of v between a and b where a < b.

Template Parameters
TType of the values
Parameters
valueValue needing to be clipped,
min_valBegin value of the range.
max_valEnd value of the range.
Returns
Clipped value.