public class DirectionUtils extends Object
Modifier and Type | Field and Description |
---|---|
static DirectionUtils |
instance |
Modifier and Type | Method and Description |
---|---|
static double |
getAzimuth(org.locationtech.jts.geom.Coordinate a,
org.locationtech.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(org.locationtech.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(org.locationtech.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(org.locationtech.jts.geom.Coordinate a, org.locationtech.jts.geom.Coordinate b)
public static double getLastAngle(org.locationtech.jts.geom.Geometry geometry)
geometry
- a LineString or a MultiLineStringpublic static double getFirstAngle(org.locationtech.jts.geom.Geometry geometry)
geometry
- a LineString or a MultiLineStringCopyright © 2019. All rights reserved.