Class radians
Defined in File radians.hpp
Inheritance Relationships
Base Type
public rcppsw::er::stringizable
(Class stringizable)
Class Documentation
-
class radians : public rcppsw::er::stringizable
Used to store an angle value in radians (duh).
Public Functions
-
inline explicit radians(double value) noexcept
-
radians(void) = default
-
inline bool is_equal(const radians &other, double tol = kDOUBLE_EPSILON) const
Determine if two instances are equal within the specified tolerance.
This cannot be made part of operator==(), because those functions cannot have default arguments.
-
inline bool operator==(const radians &other) const
Compare two radian values for equality, using the tolerance specified during construction.
-
inline void set(double value)
Sets the value in radians.
-
virtual std::string to_str(void) const override
Return a string representation of the radians object of the form ‘rad(XX) -> deg(YY)’.
-
inline double v(void) const
Get the raw value in radians.
Public Static Attributes
-
static const double kRADIANS_TO_DEGREES
-
inline explicit radians(double value) noexcept