Package org.locationtech.jts.algorithm
Class InteriorPointArea.SafeBisectorFinder
- java.lang.Object
-
- org.locationtech.jts.algorithm.InteriorPointArea.SafeBisectorFinder
-
- Enclosing class:
- InteriorPointArea
private static class InteriorPointArea.SafeBisectorFinder extends java.lang.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.
-
-
Constructor Summary
Constructors Constructor Description SafeBisectorFinder(Polygon poly)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getBisectorY()
static double
getBisectorY(Polygon poly)
private void
process(LineString line)
private void
updateInterval(double y)
-
-
-
Field Detail
-
poly
private Polygon poly
-
centreY
private double centreY
-
hiY
private double hiY
-
loY
private double loY
-
-
Constructor Detail
-
SafeBisectorFinder
public SafeBisectorFinder(Polygon poly)
-
-
Method Detail
-
getBisectorY
public static double getBisectorY(Polygon poly)
-
getBisectorY
public double getBisectorY()
-
process
private void process(LineString line)
-
updateInterval
private void updateInterval(double y)
-
-