public final class Azimuth extends Object
Constructor and Description |
---|
Azimuth(Azimuth azimuth)
Creates an azimuth based on an angle, expressed in degrees.
|
Azimuth(double degrees)
Create an
Azimuth based on the given azimuth value in degrees. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
static Azimuth |
fromRadians(double radians)
Creates an Azimuth from an azimuth value in radians.
|
double |
getDegrees()
Returns the value in degrees.
|
double |
getRadians()
Returns the value in radians.
|
int |
hashCode() |
Angle |
toAngle() |
public Azimuth(double degrees) throws IllegalArgumentException
Azimuth
based on the given azimuth value in degrees.degrees
- an angle in degreeIllegalArgumentException
- when degrees is NaN or infinite.public Azimuth(@NotNull Azimuth azimuth)
azimuth
- the azimuth value.@NotNull public static Azimuth fromRadians(double radians) throws IllegalArgumentException
radians
- an azimuth in radiansAzimuth
based on the given azimuth in radiansIllegalArgumentException
- when radians is NaN or infinite.public double getDegrees()
public double getRadians()
@NotNull public Angle toAngle()