Package com.luciad.cartesian
Class Azimuth
java.lang.Object
com.luciad.cartesian.Azimuth
An azimuth: degrees, clockwise from north/up/Y-axis.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static Azimuth
fromRadians
(double radians) Creates an Azimuth from an azimuth value in radians.double
Returns the value in degrees.double
Returns the value in radians.int
hashCode()
toAngle()
-
Constructor Details
-
Azimuth
Create anAzimuth
based on the given azimuth value in degrees.- Parameters:
degrees
- an angle in degree- Throws:
IllegalArgumentException
- when degrees is NaN or infinite.
-
Azimuth
Creates an azimuth based on an angle, expressed in degrees.- Parameters:
azimuth
- the azimuth value.
-
-
Method Details
-
fromRadians
Creates an Azimuth from an azimuth value in radians.- Parameters:
radians
- an azimuth in radians- Returns:
- a new
Azimuth
based on the given azimuth in radians - Throws:
IllegalArgumentException
- when radians is NaN or infinite.
-
getDegrees
public double getDegrees()Returns the value in degrees.- Returns:
- the value in degrees.
-
getRadians
public double getRadians()Returns the value in radians.- Returns:
- the value in radians.
-
toAngle
-
equals
-
hashCode
public int hashCode()
-