21 angle(
float r) : radiants_(r) { }
29 operator float& () {
return radiants_; }
30 operator const float& ()
const {
return radiants_; }
41 inline angle operator"" _deg(
long double deg) {
45 inline angle operator"" _rad(
long double rad) {
49 std::ostream&
operator<<(std::ostream&, angle);
50 std::istream&
operator>>(std::istream&, angle&);
constexpr real degree_per_radiant
Definition: math_constants.h:15
static angle radiants(float r)
Definition: angle.h:18
angle(float r)
Definition: angle.h:21
constexpr real radiant_per_degree
Definition: math_constants.h:14
bool operator==(angle a) const
Definition: angle.h:35
static angle smallest_between(angle a, angle b)
Definition: angle.cc:20
void set_degrees(float d)
Definition: angle.h:27
const float & get_radiants() const
Definition: angle.h:24
void set_radiants(float r)
Definition: angle.h:26
bool operator!=(angle a) const
Definition: angle.h:36
static angle degrees(float d)
Definition: angle.h:17
std::istream & operator>>(std::istream &str, angle &a)
Definition: angle.cc:13
Angle, represented in radiants.
Definition: angle.h:12
angle & operator=(float r)
Definition: angle.h:32
std::ostream & operator<<(std::ostream &str, const time_span &span)
Definition: common.h:76
float get_degrees() const
Definition: angle.h:25