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