Package com.luciad.cartesian
Class Azimuth
java.lang.Object
com.luciad.cartesian.Azimuth
An azimuth: degrees, clockwise from north/up/Y-axis.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AzimuthfromRadians(double radians) Creates an Azimuth from an azimuth value in radians.doubleReturns the value in degrees.doubleReturns the value in radians.inthashCode()toAngle()
-
Constructor Details
-
Azimuth
Create anAzimuthbased 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
Azimuthbased 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
-
plus
-
minus
-
equals
-
hashCode
public int hashCode()
-