LuciadCPillar C# 2024.0.08
|
An angle on a mathematical circle: degrees, counter-clockwise from right/X-axis. More...
Public Types | |
enum | Direction { Clockwise , CounterClockwise } |
Represents the different angular directions. More... | |
Public Member Functions | |
Angle (Angle angle) | |
Creates an angle based on another angle. More... | |
Angle (double degrees) | |
Creates an angle based on the given angular value in degrees. More... | |
bool | Equals (Angle other) |
override bool | Equals (object other) |
override int | GetHashCode () |
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... | |
static implicit | operator Angle (Azimuth azimuth) |
static implicit | operator Angle (double value) |
static bool | operator!= (Angle lhs, Angle rhs) |
static bool | operator== (Angle lhs, Angle rhs) |
Properties | |
double | Degrees [get] |
The value in degrees constrained between [0, 360] . More... | |
double | Radians [get] |
The value in radians constrained between [0, 2*PI] More... | |
An angle on a mathematical circle: degrees, counter-clockwise from right/X-axis.
|
inline |
Creates an angle based on the given angular value in degrees.
degrees | an angle in degree |
System.ArgumentException | when degrees is NaN or infinite. |
|
inline |
Creates an angle based on another angle.
angle | an angle. |
|
inline |
|
inline |
|
inlinestatic |
Creates an Angle from an angle value in radians.
radians | an angle in radians |
System.ArgumentException | when radians is NaN or infinite. |
|
inline |
|
inlinestatic |
Normalizes the degree value to the range ]-180, +180]
.
degrees | a value in degrees |
]-180, +180]
.
|
inlinestatic |
|
get |
The value in degrees constrained between [0, 360]
.
Returns the value in degrees constrained between [0, 360]
.
|
get |
The value in radians constrained between [0, 2*PI]
Returns the value in radians constrained between [0, 2*PI]