Class Angle


  • public class Angle
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Angle()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double find​(double x1, double y1, double x2, double y2)
      Angle in radians with y-axis being 0 in clockwise direction.
      static double find​(LatLonPoint point1, LatLonPoint point2)
      Angle in radians with y-axis being 0 in clockwise direction.
      LatLon Point may be more useful using Azimuth.
      static double find​(org.locationtech.jts.geom.Coordinate coord1, org.locationtech.jts.geom.Coordinate coord2)
      Angle in radians with y-axis being 0 in clockwise direction.
      static double find​(org.locationtech.jts.geom.Point point1, org.locationtech.jts.geom.Point point2)
      Angle in radians with y-axis being 0 in clockwise direction.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Angle

        public Angle()
    • Method Detail

      • find

        public static final double find​(double x1,
                                        double y1,
                                        double x2,
                                        double y2)
        Angle in radians with y-axis being 0 in clockwise direction.
        Parameters:
        x1 -
        y1 -
        x2 -
        y2 -
        Returns:
        Angle from y-axis in 0 to 2π radians.
      • find

        public static final double find​(LatLonPoint point1,
                                        LatLonPoint point2)
        Angle in radians with y-axis being 0 in clockwise direction.
        LatLon Point may be more useful using Azimuth.
        Parameters:
        point1 - LatLon Point in degrees.
        point2 - LatLon Point in degrees.
        Returns:
        Angle from y-axis in 0 to 2π radians.
      • find

        public static final double find​(org.locationtech.jts.geom.Point point1,
                                        org.locationtech.jts.geom.Point point2)
        Angle in radians with y-axis being 0 in clockwise direction.
        Parameters:
        point1 - Point in degrees.
        point2 - Point in degrees.
        Returns:
        Angle from y-axis in 0 to 2π radians.
      • find

        public static final double find​(org.locationtech.jts.geom.Coordinate coord1,
                                        org.locationtech.jts.geom.Coordinate coord2)
        Angle in radians with y-axis being 0 in clockwise direction.
        Parameters:
        coord1 - Point in degrees.
        coord2 - Point in degrees.
        Returns:
        Angle from y-axis in 0 to 2π radians.