Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
tap::algorithms::Angle Class Reference

#include <wrapped_float.hpp>

Inheritance diagram for tap::algorithms::Angle:
Collaboration diagram for tap::algorithms::Angle:

Public Member Functions

 Angle (const float value)
 
- Public Member Functions inherited from tap::algorithms::WrappedFloat
 WrappedFloat (float value, float lowerBound, float upperBound)
 
WrappedFloat withSameBounds (const float value) const
 
bool operator== (const WrappedFloat &other) const
 
void operator+= (const WrappedFloat &other)
 
void operator-= (const WrappedFloat &other)
 
WrappedFloat operator+ (const WrappedFloat &other) const
 
WrappedFloat operator- (const WrappedFloat &other) const
 
void operator+= (float other)
 
void operator-= (float other)
 
WrappedFloat operator+ (float other) const
 
WrappedFloat operator- (float other) const
 
float minDifference (const WrappedFloat &other) const
 
float minDifference (const float &unwrappedValue) const
 
WrappedFloat minInterpolate (const WrappedFloat &other, float alpha) const
 
void shiftBounds (float shiftMagnitude)
 
bool withinRange (const WrappedFloat &lowerBound, const WrappedFloat &upperBound) const
 
float getUnwrappedValue () const
 
float getWrappedValue () const
 
void setWrappedValue (float newWrappedValue)
 
void setUnwrappedValue (float newUnwrappedValue)
 
WrappedFloat getNormalized () const
 
int getRevolutions () const
 
float getUpperBound () const
 
float getLowerBound () const
 

Static Public Member Functions

static WrappedFloat fromDegrees (const float degrees)
 
- Static Public Member Functions inherited from tap::algorithms::WrappedFloat
static float limitValue (const WrappedFloat &valueToLimit, const WrappedFloat &min, const WrappedFloat &max, int *status)
 
static float limitValue (const WrappedFloat &valueToLimit, const float min, const float max, int *status)
 
static float rangeOverlap (const WrappedFloat &lowerA, const WrappedFloat &upperA, const WrappedFloat &lowerB, const WrappedFloat &upperB)
 

Additional Inherited Members

- Static Public Attributes inherited from tap::algorithms::WrappedFloat
static constexpr float EPSILON = 1E-8
 

Detailed Description

Represents an angle in radians.

Constructor & Destructor Documentation

◆ Angle()

tap::algorithms::Angle::Angle ( const float  value)
inline

Member Function Documentation

◆ fromDegrees()

static WrappedFloat tap::algorithms::Angle::fromDegrees ( const float  degrees)
inlinestatic

The documentation for this class was generated from the following file: