Class degrees
Defined in File degrees.hpp
Inheritance Relationships
Base Type
public rcppsw::er::stringizable
(Class stringizable)
Class Documentation
-
class degrees : public rcppsw::er::stringizable
Used to store an angle value in degrees (duh).
Public Functions
-
inline explicit degrees(double value)
Initialize from the specified value in DEGREES.
-
degrees(void) = default
-
inline double operator()(void) const
-
inline void set(double value)
Set the current value in degrees.
- Parameters:
value – In DEGREES.
-
virtual std::string to_str(void) const override
Return a string representation of the degrees object of the form ‘deg(XX) -> rad(YY)’.
-
inline double v(void) const
Get the raw value of the angle.
Public Static Attributes
-
static const double kDEGREES_TO_RADIANS
-
inline explicit degrees(double value)