Template Class WrappedFloat¶
Defined in File wrapped_float.hpp
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(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 bool withinRange(const WrappedFloat &lowerBound, const WrappedFloat upperBound) const¶
-
inline WrappedFloat getNormalized() const¶
-
inline int getRevolutions() 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)¶
-
using TappedFloat = tap::algorithms::WrappedFloat¶