LimitRange
-
template<fgc4::utils::NumericScalar T>
class LimitRange : public vslib::Component Public Functions
-
inline LimitRange(std::string_view name, Component &parent)
Constructor of LimitRange Component, initializes min, max, and dead_zone Parameters.
-
inline T limit(const T input) noexcept
Checks minimum and maximum thresholds as well as the dead zone and returns the processed value.
- Parameters:
input – Numerical input to be checked
- Returns:
Either original input if no issues were found or nearest edge of allowed zone, minimum representable value if NaN was provided
-
inline LimitRange(std::string_view name, Component &parent)