Class DegreesCentroid


  • public class DegreesCentroid
    extends Object
    Centroid calculations for geometries in degrees
    Since:
    2.0.5
    Author:
    osbornb
    • Field Detail

      • RADIANS_TO_DEGREES

        public static final double RADIANS_TO_DEGREES
        Radians to Degrees conversion
        See Also:
        Constant Field Values
      • DEGREES_TO_RADIANS

        public static final double DEGREES_TO_RADIANS
        Degrees to Radians conversion
        See Also:
        Constant Field Values
    • Constructor Detail

      • DegreesCentroid

        public DegreesCentroid​(Geometry geometry)
        Constructor
        Parameters:
        geometry - geometry
    • Method Detail

      • getCentroid

        public static Point getCentroid​(Geometry geometry)
        Get the degree geometry centroid
        Parameters:
        geometry - geometry
        Returns:
        centroid point
      • getCentroid

        public Point getCentroid()
        Get the centroid point
        Returns:
        centroid point