28 radians += rhs.radians;
35 radians -= rhs.radians;
84 ASSERT(v <= 1 &&
"v must be smaller than 1");
85 ASSERT(v >= -1 &&
"v must be greater than -1");
93 ASSERT(v <= 1 &&
"v must be smaller than 1");
94 ASSERT(v >= -1 &&
"v must be greater than -1");
163 {
return fmt::format(
"{} deg", a.as_degrees()); }
197 const auto dtheta = to - from;
206 return from + ( to - new_from ) * v;
Angle operator+(const Angle &lhs, const Angle &rhs)
Angle atan2(float y, float x)
constexpr Angle half_turn
Angle operator-(const Angle &lhs, const Angle &rhs)
Angle operator/(const Angle &lhs, float rhs)
Range< T > make_range(T min, T max)
float tan(const Angle &ang)
Angle lerp_angle(const Angle &from, float v, const Angle &to)
std::string to_string(const Aabb &a)
T wrap(const Range< T > &range, T value)
float cos(const Angle &ang)
bool operator>=(const Angle &lhs, const Angle &rhs)
Angle get_random_angle(::eu::Random *random)
float sin(const Angle &ang)
bool operator<(const Angle &lhs, const Angle &rhs)
Angle operator*(const Angle &lhs, float rhs)
bool operator>(const Angle &lhs, const Angle &rhs)
bool operator<=(const Angle &lhs, const Angle &rhs)
constexpr float as_radians() const
void operator-=(const Angle &rhs)
void operator+=(const Angle &rhs)
void operator/=(float rhs)
constexpr static Angle from_radians(float radians)
Angle get_wrapped() const
constexpr float from_percent_of_360() const
void operator*=(float rhs)
WEL512 Random Number Generator.