Template Class WrappedFloat

Class Documentation

template<typename Unit>
class WrappedFloat

This is a wrappedFloat but uses units instead https://aruw.gitlab.io/controls/taproot/api/classtap_1_1algorithms_1_1_wrapped_float.html#exhale-class-classtap-1-1algorithms-1-1-wrapped-float

Public Types

using TappedFloat = tap::algorithms::WrappedFloat

Public Functions

inline WrappedFloat(Unit value, Unit lowerBound, Unit upperBound)
inline WrappedFloat(const tap::algorithms::WrappedFloat &wrappedFloat)
inline bool operator==(const WrappedFloat &other) const
inline void operator+=(const WrappedFloat &other)
inline void operator-=(const WrappedFloat &other)
inline WrappedFloat operator+(const WrappedFloat &other) const
inline WrappedFloat operator-(const WrappedFloat &other) const
inline Unit minDifference(const WrappedFloat &other) const
inline Unit minDifference(const Unit &unwrappedValue) const
inline void shiftBounds(Unit shiftMagnitude)
inline bool withinRange(const WrappedFloat &lowerBound, const WrappedFloat upperBound) const
inline Unit getUnwrappedValue() const
inline Unit getWrappedValue() const
inline void setWrappedValue(const Unit &newValue)
inline void setUnwrappedValue(const Unit &newValue)
inline WrappedFloat getNormalized() const
inline int getRevolutions() const
inline Unit getUpperBound() const
inline Unit getLowerBound() const

Public Static Functions

static inline Unit limitValue(const WrappedFloat &valueToLimit, const Unit min, const Unit max, int *status)
static inline Unit limitValue(const WrappedFloat &valueToLimit, const WrappedFloat &min, const WrappedFloat &max, int *status)
static inline Unit rangeOverlap(const WrappedFloat &lowerA, const WrappedFloat &upperA, const WrappedFloat &lowerB, const WrappedFloat &upperB)