Class Longitude

java.lang.Object
ch.ivyteam.ivy.location.Longitude

public class Longitude extends Object
Longitude of a geo-position.
See Also:
API:
This is a public API.
  • Constructor Details

    • Longitude

      public Longitude(Angle angle)
      Creates a longitude with an angle
      Parameters:
      angle - (west) -180.0d..+180.0d (east)
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.
  • Method Details

    • getAngle

      public Angle getAngle()
      Returns:
      (west) -180.0d .. +180.0d (east)
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.
    • getDirection

      public Longitude.Direction getDirection()
      Returns:
      Longitude.Direction.WEST or Longitude.Direction.EAST
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.
    • inDegrees

      public static Longitude inDegrees(double degrees)
      Creates a Longitude in degrees
      Parameters:
      degrees - (west) -180.0d..+180.0d (east)
      Returns:
      longitude
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.
    • inDegrees

      public static Longitude inDegrees(double degrees, Longitude.Direction direction)
      Creates a Longitude in degrees and a direction
      Parameters:
      degrees - 0.0d..180.0d
      direction - east or west
      Returns:
      longitude
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.
    • inRadians

      public static Longitude inRadians(double radians)
      Creates a Longitude in radians
      Parameters:
      radians - (west) -Math.PI..+Math.PI (east)
      Returns:
      longitude
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.
    • inRadians

      public static Longitude inRadians(double radians, Longitude.Direction direction)
      Creates a Longitude in radians and a direction
      Parameters:
      radians - 0.0d..Math.PI
      direction - east or west
      Returns:
      longitude
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.