public class LineSegmentUtil
extends java.lang.Object
LineSegment
s.
Note: Eventually some of these functions may be moved into the JTS LineSegment class.
Constructor and Description |
---|
LineSegmentUtil() |
Modifier and Type | Method and Description |
---|---|
static com.vividsolutions.jts.geom.LineString |
asGeometry(com.vividsolutions.jts.geom.GeometryFactory factory,
com.vividsolutions.jts.geom.LineSegment seg)
Converts a LineSegment to a LineString.
|
static double |
hausdorffDistance(com.vividsolutions.jts.geom.LineSegment seg0,
com.vividsolutions.jts.geom.LineSegment seg1)
Computes the Hausdorff distance between two LineSegments.
|
static com.vividsolutions.jts.geom.LineSegment |
project(com.vividsolutions.jts.geom.LineSegment tgt,
com.vividsolutions.jts.geom.LineSegment seg)
Projects one line segment onto another and returns the resulting
line segment.
|
public static com.vividsolutions.jts.geom.LineSegment project(com.vividsolutions.jts.geom.LineSegment tgt, com.vividsolutions.jts.geom.LineSegment seg)
tgt
- the line segment to be projected ontoseg
- the line segment to projectnull
if there is no overlappublic static double hausdorffDistance(com.vividsolutions.jts.geom.LineSegment seg0, com.vividsolutions.jts.geom.LineSegment seg1)
seg0
- seg1
- public static com.vividsolutions.jts.geom.LineString asGeometry(com.vividsolutions.jts.geom.GeometryFactory factory, com.vividsolutions.jts.geom.LineSegment seg)
factory
- a factory used to create the LineStringseg
- the LineSegment to convert