LuciadCPillar 2024.0.08
|
An angle on a mathematical circle: degrees, counter-clockwise from right/X-axis. More...
#include <luciad/cartesian/Angle.h>
Public Types | |
enum class | Direction { Clockwise , CounterClockwise } |
Represents the different angular directions. More... | |
Public Member Functions | |
Angle (const Angle &angle)=default | |
Creates an angle based on another angle. More... | |
Angle (const Azimuth &azimuth) | |
Creates an angle based on an azimuth, expressed in degrees. More... | |
Angle (double degrees) | |
Creates an angle based on the given angular value in degrees. More... | |
double | getDegrees () const |
Returns the value in degrees constrained between [0, 360] . More... | |
double | getRadians () const |
Returns the value in radians constrained between [0, 2*PI] More... | |
bool | operator!= (const Angle &other) const |
Angle | operator* (const double scalar) const |
Angle & | operator*= (const double scalar) |
Angle | operator+ (const Angle &other) const |
Angle & | operator+= (const Angle &other) |
Angle | operator- () const |
Angle | operator- (const Angle &other) const |
Angle & | operator-= (const Angle &other) |
Angle | operator/ (const double scalar) const |
Angle & | operator/= (const double scalar) |
bool | operator< (const Angle &other) const |
bool | operator<= (const Angle &other) const |
Angle & | operator= (const Angle &other)=default |
Angle & | operator= (const Azimuth &other) |
Angle & | operator= (const double arg) noexcept |
bool | operator== (const Angle &other) const |
bool | operator> (const Angle &other) const |
bool | operator>= (const Angle &other) const |
Static Public Member Functions | |
static Angle | fromRadians (double radians) |
Creates an Angle from an angle value in radians. More... | |
static double | normalize (double degrees) |
Normalizes the degree value to the range ]-180, +180] . More... | |
An angle on a mathematical circle: degrees, counter-clockwise from right/X-axis.
|
strong |
luciad::Angle::Angle | ( | double | degrees | ) |
Creates an angle based on the given angular value in degrees.
degrees | an angle in degree |
luciad::InvalidArgumentException | when degrees is NaN or infinite. |
|
default |
Creates an angle based on another angle.
angle | an angle. |
luciad::Angle::Angle | ( | const Azimuth & | azimuth | ) |
Creates an angle based on an azimuth, expressed in degrees.
azimuth | an azimuth. |
|
static |
Creates an Angle from an angle value in radians.
radians | an angle in radians |
luciad::InvalidArgumentException | when radians is NaN or infinite. |
|
inline |
Returns the value in degrees constrained between [0, 360]
.
[0, 360]
. double luciad::Angle::getRadians | ( | ) | const |
Returns the value in radians constrained between [0, 2*PI]
[0, 2*PI]
.
|
static |
Normalizes the degree value to the range ]-180, +180]
.
degrees | a value in degrees |
]-180, +180]
.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |