mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
|
Convenience specialization of the cyclic class for signed degrees (from $-180$ to $180$). More...
#include <cyclic.h>
Static Public Attributes | |
static constexpr double | minimum = -180 |
static constexpr double | supremum = 180 |
Static Public Attributes inherited from mrs_lib::geometry::cyclic< double, sdegrees > | |
static constexpr double | minimum |
Minimum of the valid interval of wrapped values . | |
static constexpr double | supremum |
Supremum of the valid interval of wrapped values . | |
static constexpr double | range |
Range of the valid interval of wrapped values (also the period of the cyclic quantity). | |
static constexpr double | half_range |
Half of the range of the valid interval of wrapped values (used for some calculations). | |
Additional Inherited Members | |
Public Member Functions inherited from mrs_lib::geometry::cyclic< double, sdegrees > | |
cyclic () | |
Default constructor. More... | |
cyclic (const double val) | |
Constructor overload. More... | |
cyclic (const cyclic &other) | |
Copy constructor. More... | |
cyclic (const sdegrees &other) | |
Copy constructor. More... | |
double | value () const |
Getter for val . More... | |
other_t | convert () const |
Conversion between two different circular quantities. More... | |
cyclic & | operator= (const double nval) |
Assignment operator. More... | |
cyclic & | operator= (const cyclic &other) |
Assignment operator. More... | |
cyclic & | operator= (cyclic &&other) |
Move operator. More... | |
cyclic & | operator+= (const cyclic &other) |
Addition compound operator. More... | |
cyclic & | operator-= (const cyclic &other) |
Subtraction compound operator. More... | |
Static Public Member Functions inherited from mrs_lib::geometry::cyclic< double, sdegrees > | |
static bool | inRange (const double val) |
Checks if val is within the valid interval of wrapped values. More... | |
static double | wrap (const double val) |
Returns val , converted to the valid interval of values. More... | |
static double | unwrap (const double what, const double from) |
Returns value of the parameter what modified so that there is no "jump" between from and \t what. More... | |
static double | pdist (const double from, const double to) |
Returns length of the shortest walk in the positive direction from the first parameter to the second one. More... | |
static double | pdist (const cyclic from, const cyclic to) |
static double | diff (const double minuend, const double subtrahend) |
Returns the difference between the two circular values. More... | |
static double | diff (const cyclic minuend, const cyclic subtrahend) |
static double | dist (const double from, const double to) |
Returns the distance between the two circular values. More... | |
static double | dist (const cyclic from, const cyclic to) |
static double | interpUnwrapped (const double from, const double to, const double coeff) |
Interpolation between two circular quantities without wrapping of the result. More... | |
static double | interpUnwrapped (const cyclic from, const cyclic to, const double coeff) |
static double | interp (const double from, const double to, const double coeff) |
Interpolation between two circular quantities. More... | |
static double | interp (const cyclic from, const cyclic to, const double coeff) |
static double | pinterpUnwrapped (const double from, const double to, const double coeff) |
Interpolation between two circular quantities in the positive direction without wrapping of the result. More... | |
static double | pinterpUnwrapped (const cyclic from, const cyclic to, const double coeff) |
static double | pinterp (const double from, const double to, const double coeff) |
Interpolation between two circular quantities in the positive direction. More... | |
static double | pinterp (const cyclic from, const cyclic to, const double coeff) |
static other_t | convert (const cyclic &what) |
Conversion between two different circular quantities. More... | |
Protected Attributes inherited from mrs_lib::geometry::cyclic< double, sdegrees > | |
double | val |
Convenience specialization of the cyclic class for signed degrees (from $-180$ to $180$).