public class StaticGeometryFunctions extends Object
| Constructor and Description |
|---|
StaticGeometryFunctions() |
| Modifier and Type | Method and Description |
|---|---|
static Point2D.Double |
createIntersectionPoint(Line2D line1,
Line2D line2)
DOCUMENT ME!
|
static Point2D |
createPointOnLine(Point2D lineStart,
Point2D lineEnd,
Point2D trigger)
Calculates Perpendicular Point of the Trigger on the Line, which goes through lineStart and lineEnd.
|
static double |
distanceToLine(Point2D lineStart,
Point2D lineEnd,
Point2D trigger)
Calculates the Distance between a specified Point and a specified Line, which goes through lineStart and lineEnd.
|
static com.vividsolutions.jts.geom.Geometry |
toMultiGeometry(com.vividsolutions.jts.geom.Geometry g)
Converts a single part geometry to a multi part geometry.
|
static com.vividsolutions.jts.geom.Geometry |
toSimpleGeometry(com.vividsolutions.jts.geom.Geometry g)
Converts a multi-point/polygon/linestring to a point/polygon/linestring.
|
public static Point2D createPointOnLine(Point2D lineStart, Point2D lineEnd, Point2D trigger)
lineStart - startPoint of the LinelineEnd - endPoint of the Linetrigger - Point to which the Perpendicular Point will get calculatedpublic static Point2D.Double createIntersectionPoint(Line2D line1, Line2D line2)
line1 - DOCUMENT ME!line2 - DOCUMENT ME!public static double distanceToLine(Point2D lineStart, Point2D lineEnd, Point2D trigger)
lineStart - startPoint of the LinelineEnd - endPoint of the Linetrigger - Point, whose distance to the Line should get Calculatedpublic static com.vividsolutions.jts.geom.Geometry toSimpleGeometry(com.vividsolutions.jts.geom.Geometry g)
g - the geometry to convertpublic static com.vividsolutions.jts.geom.Geometry toMultiGeometry(com.vividsolutions.jts.geom.Geometry g)
g - a single part geometryCopyright © 2012–2026 cismet GmbH. All rights reserved.