Class Azimuth

java.lang.Object
com.luciad.cartesian.Azimuth

public final class Azimuth extends Object
An azimuth: degrees, clockwise from north/up/Y-axis.
  • Constructor Details Link icon

    • Azimuth Link icon

      public Azimuth(double degrees) throws IllegalArgumentException
      Create an Azimuth based on the given azimuth value in degrees.
      Parameters:
      degrees - an angle in degree
      Throws:
      IllegalArgumentException - when degrees is NaN or infinite.
    • Azimuth Link icon

      public Azimuth(@NotNull Azimuth azimuth)
      Creates an azimuth based on an angle, expressed in degrees.
      Parameters:
      azimuth - the azimuth value.
  • Method Details Link icon

    • fromRadians Link icon

      @NotNull public static Azimuth fromRadians(double radians) throws IllegalArgumentException
      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 Link icon

      public double getDegrees()
      Returns the value in degrees.
      Returns:
      the value in degrees.
    • getRadians Link icon

      public double getRadians()
      Returns the value in radians.
      Returns:
      the value in radians.
    • toAngle Link icon

      @NotNull public Angle toAngle()
    • equals Link icon

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object