|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.geom.LineSegmentUtil
public class LineSegmentUtil
Utility functions for LineSegments.
Note: Eventually some of these functions may be moved into the JTS LineSegment class.
| Constructor Summary | |
|---|---|
LineSegmentUtil()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LineSegmentUtil()
| Method Detail |
|---|
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 project
null if there is no overlap
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||