mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
degrees Struct Reference
+ Inheritance diagram for degrees:
+ Collaboration diagram for degrees:

Static Public Attributes

static constexpr double minimum = -180
 
static constexpr double supremum = 180
 
- Static Public Attributes inherited from mrs_lib::geometry::cyclic< float, degrees >
static constexpr float minimum
 Minimum of the valid interval of wrapped values $ m $.
 
static constexpr float supremum
 Supremum of the valid interval of wrapped values $ s $.
 
static constexpr float range
 Range of the valid interval of wrapped values $ r $ (also the period of the cyclic quantity).
 
static constexpr float half_range
 Half of the range of the valid interval of wrapped values $ r/2 $ (used for some calculations).
 

Additional Inherited Members

- Public Member Functions inherited from mrs_lib::geometry::cyclic< float, degrees >
 cyclic ()
 Default constructor. More...
 
 cyclic (const float val)
 Constructor overload. More...
 
 cyclic (const cyclic &other)
 Copy constructor. More...
 
 cyclic (const degrees &other)
 Copy constructor. More...
 
float value () const
 Getter for val. More...
 
other_t convert () const
 Conversion between two different circular quantities. More...
 
cyclicoperator= (const float nval)
 Assignment operator. More...
 
cyclicoperator= (const cyclic &other)
 Assignment operator. More...
 
cyclicoperator= (cyclic &&other)
 Move operator. More...
 
cyclicoperator+= (const cyclic &other)
 Addition compound operator. More...
 
cyclicoperator-= (const cyclic &other)
 Subtraction compound operator. More...
 
- Static Public Member Functions inherited from mrs_lib::geometry::cyclic< float, degrees >
static bool inRange (const float val)
 Checks if val is within the valid interval of wrapped values. More...
 
static float wrap (const float val)
 Returns val, converted to the valid interval of values. More...
 
static float unwrap (const float what, const float from)
 Returns value of the parameter what modified so that there is no "jump" between from and \t what. More...
 
static float pdist (const float from, const float to)
 Returns length of the shortest walk in the positive direction from the first parameter to the second one. More...
 
static float pdist (const cyclic from, const cyclic to)
 
static float diff (const float minuend, const float subtrahend)
 Returns the difference between the two circular values. More...
 
static float diff (const cyclic minuend, const cyclic subtrahend)
 
static float dist (const float from, const float to)
 Returns the distance between the two circular values. More...
 
static float dist (const cyclic from, const cyclic to)
 
static float interpUnwrapped (const float from, const float to, const float coeff)
 Interpolation between two circular quantities without wrapping of the result. More...
 
static float interpUnwrapped (const cyclic from, const cyclic to, const float coeff)
 
static float interp (const float from, const float to, const float coeff)
 Interpolation between two circular quantities. More...
 
static float interp (const cyclic from, const cyclic to, const float coeff)
 
static float pinterpUnwrapped (const float from, const float to, const float coeff)
 Interpolation between two circular quantities in the positive direction without wrapping of the result. More...
 
static float pinterpUnwrapped (const cyclic from, const cyclic to, const float coeff)
 
static float pinterp (const float from, const float to, const float coeff)
 Interpolation between two circular quantities in the positive direction. More...
 
static float pinterp (const cyclic from, const cyclic to, const float coeff)
 
static other_t convert (const cyclic &what)
 Conversion between two different circular quantities. More...
 
- Protected Attributes inherited from mrs_lib::geometry::cyclic< float, degrees >
float val
 

Detailed Description


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