public class DirectionUtils extends Object
Modifier and Type | Field and Description |
---|---|
static DirectionUtils |
instance |
Modifier and Type | Method and Description |
---|---|
static double |
getAzimuth(com.vividsolutions.jts.geom.Coordinate a,
com.vividsolutions.jts.geom.Coordinate b)
Returns the approximate azimuth from coordinate A to B in decimal degrees clockwise from North,
in the range (-180° to +180°).
|
static double |
getFirstAngle(com.vividsolutions.jts.geom.Geometry geometry)
Computes the angle of the first segment of a LineString or MultiLineString in radians clockwise from North
in the range (-PI, PI).
|
static double |
getLastAngle(com.vividsolutions.jts.geom.Geometry geometry)
Computes the angle of the last segment of a LineString or MultiLineString in radians clockwise from North
in the range (-PI, PI).
|
public static DirectionUtils instance
public static double getAzimuth(com.vividsolutions.jts.geom.Coordinate a, com.vividsolutions.jts.geom.Coordinate b)
public static double getLastAngle(com.vividsolutions.jts.geom.Geometry geometry)
geometry
- a LineString or a MultiLineStringpublic static double getFirstAngle(com.vividsolutions.jts.geom.Geometry geometry)
geometry
- a LineString or a MultiLineStringCopyright © 2018. All rights reserved.