Class InteriorPointArea.SafeBisectorFinder

java.lang.Object
org.locationtech.jts.algorithm.InteriorPointArea.SafeBisectorFinder
Enclosing class:
InteriorPointArea

private static class InteriorPointArea.SafeBisectorFinder extends Object
Finds a safe bisector Y ordinate by projecting to the Y axis and finding the Y-ordinate interval which contains the centre of the Y extent. The centre of this interval is returned as the bisector Y-ordinate.
  • Field Details

    • poly

      private Polygon poly
    • centreY

      private double centreY
    • hiY

      private double hiY
    • loY

      private double loY
  • Constructor Details

    • SafeBisectorFinder

      public SafeBisectorFinder(Polygon poly)
  • Method Details

    • getBisectorY

      public static double getBisectorY(Polygon poly)
    • getBisectorY

      public double getBisectorY()
    • process

      private void process(LineString line)
    • updateInterval

      private void updateInterval(double y)