58 explicit
Angle(
bool trim) noexcept
58 explicit
Angle(
bool trim) noexcept {
…}
68 double Rad() const noexcept
68 double Rad() const noexcept {
…}
89 double Deg() const noexcept
91 return rad_ * 180.0 / CVB_M_PI;
89 double Deg() const noexcept {
…}
101 rad_ = deg * CVB_M_PI / 180.0;
134 return rad_ == angle.rad_;
145 return !(*
this == angle);
156 return rad_ < angle.rad_;
167 return (*
this == angle) || (*
this < angle);
178 return (*
this != angle) && !(*
this < angle);
189 return !(*
this < angle);
201 trim_ &= angle.trim_;
214 trim_ &= angle.trim_;
248 while (rad_ > CVB_M_PI)
249 rad_ -= CVB_M_PI * 2;
250 while (rad_ <= -CVB_M_PI)
251 rad_ += CVB_M_PI * 2;
405 return cos(angle.Rad());
418 return cosh(angle.Rad());
431 return sin(angle.Rad());
444 return sinh(angle.Rad());
457 return tan(angle.Rad());
470 return tanh(angle.Rad());
483 return ((0.0 < angle.Rad()) - (angle.Rad() < 0.0));
static Angle FromRadians(double rad, bool trim=false) noexcept
Create an angle in radians.
Definition angle.hpp:39
void SetRad(double rad) noexcept
Set the value in radians.
Definition angle.hpp:78
double Rad() const noexcept
Get the value in radians.
Definition angle.hpp:68
bool operator>(const Angle &angle) const noexcept
Compares to an other angle.
Definition angle.hpp:176
Angle & operator-=(const Angle &angle) noexcept
Subtracts and assigns to this angle.
Definition angle.hpp:211
Angle operator-(const Angle &lhs, const Angle &rhs)
Subtract two angles.
Definition angle.hpp:282
double Cosh(Angle angle) noexcept
Returns the hyperbolic cosine of an angle.
Definition angle.hpp:416
Angle & operator/=(const double &value) noexcept
Divides this angle by the given value.
Definition angle.hpp:236
bool operator<=(const Angle &angle) const noexcept
Compares to an other angle.
Definition angle.hpp:165
double Deg() const noexcept
Get the value in degrees.
Definition angle.hpp:89
bool operator!=(const Angle &angle) const noexcept
Compares to an other angle.
Definition angle.hpp:143
double Tanh(Angle angle) noexcept
Returns the hyperbolic tangent of an angle.
Definition angle.hpp:468
bool operator<(const Angle &angle) const noexcept
Compares to an other angle.
Definition angle.hpp:154
void SetIsTrimmed(bool trim) noexcept
Set trimming of the value of the angle to the range -PI...PI.
Definition angle.hpp:120
bool operator==(const Angle &angle) const noexcept
Compares to an other angle.
Definition angle.hpp:132
Angle operator*(const double &lhs, const Angle &rhs)
Multiplies value with an angle.
Definition angle.hpp:324
double Sinh(Angle angle) noexcept
Returns the hyperbolic sine of an angle.
Definition angle.hpp:442
Angle & operator+=(const Angle &angle) noexcept
Adds and assigns to this angle.
Definition angle.hpp:198
Angle() noexcept=default
Generate a 0° angle.
double Sin(Angle angle) noexcept
Returns the sine of an angle.
Definition angle.hpp:429
Angle operator*(const Angle &lhs, const double &rhs)
Multiplies an angle with a value.
Definition angle.hpp:310
bool IsTrimmed() const noexcept
Get trimming of the angle's value to the range -PI...PI.
Definition angle.hpp:110
Angle Atan2(double y, double x) noexcept
Returns the angle whose tangent is the quotient of two specified numbers.
Definition angle.hpp:390
double Tan(Angle angle) noexcept
Returns the tangent of an angle.
Definition angle.hpp:455
Angle Abs(Angle angle) noexcept
Absolute value of an angle.
Definition angle.hpp:337
Angle operator+(const Angle &lhs, const Angle &rhs)
Add two angles.
Definition angle.hpp:268
static Angle FromDegrees(double deg, bool trim=false) noexcept
Create an angle in degrees.
Definition angle.hpp:25
double Cos(Angle angle) noexcept
Returns the cosine of an angle.
Definition angle.hpp:403
Angle Acos(double d) noexcept
Returns the angle whose cosine is the specified number.
Definition angle.hpp:350
Angle Asin(double d) noexcept
Returns the angle whose sine is the specified number.
Definition angle.hpp:363
bool operator>=(const Angle &angle) const noexcept
Compares to an other angle.
Definition angle.hpp:187
Angle Max(Angle a, Angle b) noexcept
Returns the bigger of two angles.
Definition angle.hpp:495
int Sign(Angle angle) noexcept
Returns a value indicating the sign of an Angle.
Definition angle.hpp:481
Angle Min(Angle a, Angle b) noexcept
Returns the smaller of two angles.
Definition angle.hpp:512
Angle Atan(double d) noexcept
Returns the angle whose tangent is the specified number.
Definition angle.hpp:376
void SetDeg(double deg) noexcept
Set the value in degrees.
Definition angle.hpp:99
Angle & operator*=(const double &value) noexcept
Multiplies this angle with the given value.
Definition angle.hpp:224
Angle operator/(const Angle &lhs, const double &rhs)
Divides an angle by a value.
Definition angle.hpp:296
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17