![]() |
Scanframe DevOps Trial App 0.1.0
|
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. | |
Just a file and namespace to demonstrate the Doxygen manual generation.
| auto MySpace::calculateOffset | ( | T | value, |
| T | min_val, | ||
| T | max_val, | ||
| S | len, | ||
| bool | clip ) -> S |
Calculates the offset for a given range and set point.
| T | Type of the passed arguments for scaling. |
| S | The type of the to be scaled argument. |
| value | Value in the range. |
| min_val | Minimum value of the range. |
| max_val | Maximum value of the range. |
| len | Length to be scaled according the value and range. |
| clip | Determines if the length needs to be clipped withing the set range. |
|
inline |
Returns clipped value of v between a and b where a < b.
| T | Type of the values |
| value | Value needing to be clipped, |
| min_val | Begin value of the range. |
| max_val | End value of the range. |