Package org.meteoinfo.jts.algorithm
Class CentralEndpointIntersector
- java.lang.Object
-
- org.meteoinfo.jts.algorithm.CentralEndpointIntersector
-
Deprecated.
public class CentralEndpointIntersector extends java.lang.ObjectComputes an approximate intersection of two line segments by taking the most central of the endpoints of the segments. This is effective in cases where the segments are nearly parallel and should intersect at an endpoint. It is also a reasonable strategy for cases where the endpoint of one segment lies on or almost on the interior of another one. Taking the most central endpoint ensures that the computed intersection point lies in the envelope of the segments. Also, by always returning one of the input points, this should result in reducing segment fragmentation. Intended to be used as a last resort for computing ill-conditioned intersection situations which cause other methods to fail.WARNING: in some cases this algorithm makes a poor choice of endpoint. It has been replaced by a better heuristic in
RobustLineIntersector.
-
-
Constructor Summary
Constructors Constructor Description CentralEndpointIntersector(Coordinate p00, Coordinate p01, Coordinate p10, Coordinate p11)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CoordinategetIntersection()Deprecated.static CoordinategetIntersection(Coordinate p00, Coordinate p01, Coordinate p10, Coordinate p11)Deprecated.
-
-
-
Constructor Detail
-
CentralEndpointIntersector
public CentralEndpointIntersector(Coordinate p00, Coordinate p01, Coordinate p10, Coordinate p11)
Deprecated.
-
-
Method Detail
-
getIntersection
public static Coordinate getIntersection(Coordinate p00, Coordinate p01, Coordinate p10, Coordinate p11)
Deprecated.
-
getIntersection
public Coordinate getIntersection()
Deprecated.
-
-