|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.discotools.io.aprs.Utilities
public class Utilities
Constructor Summary | |
---|---|
Utilities()
|
Method Summary | |
---|---|
static double |
convertDEG(double dem)
Convert from decimal minutes to decimal degrees |
static com.vividsolutions.jts.geom.Point |
coordinate(double lat0,
double lon0,
double d,
double azimuth)
Calculate new coordinates from start coordinates, distance from start and azimuth direction |
static String |
encodeALT(double alt)
|
static String |
encodeCompressionType(int... flags)
Encode flags into APRS compression type 'T' |
static String |
encodeCompressionType(String... flags)
Encode flags into APRS compression type 'T' |
static String |
encodeDIR(double crs,
double spd)
|
static String |
encodeLAT(double lat)
|
static String |
encodeLON(double lon)
|
static double |
greatCircleDistance(double lat1,
double lon1,
double lat2,
double lon2)
Calculate great circle distance in meters. |
static double |
normalizeAngle(double angle)
Calculate a normalized angle (always greater then 0) |
static com.vividsolutions.jts.geom.Point |
random(com.vividsolutions.jts.geom.Envelope box,
double max)
|
static com.vividsolutions.jts.geom.Point |
random(com.vividsolutions.jts.geom.Point p,
double max)
|
static double |
reminder(double y,
double x)
Calculate the remainder of the double floating point division of dividend y on divisor x |
static double |
sphericalAzimuth(double lat1,
double lon1,
double lat2,
double lon2)
Calculate Spherical Azimuth (Bearing) in degrees |
static com.vividsolutions.jts.geom.Point |
toPoint(double lat,
double lon)
|
static com.vividsolutions.jts.geom.Point |
toPoint(String packet,
double lat,
double lon)
|
static com.vividsolutions.jts.geom.Point |
toPoint(String lat,
String lon)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utilities()
Method Detail |
---|
public static double greatCircleDistance(double lat1, double lon1, double lat2, double lon2)
lat1
- - Latitude of origin point in decimal degreeslon1
- - longitude of origin point in decimal degreeslat2
- - latitude of destination point in decimal degreeslon2
- - longitude of destination point in decimal degrees
public static double sphericalAzimuth(double lat1, double lon1, double lat2, double lon2)
lat1
- - Latitude of origin point in decimal degreeslon1
- - longitude of origin point in decimal degreeslat2
- - latitude of destination point in decimal degreeslon2
- - longitude of destination point in decimal degrees
public static com.vividsolutions.jts.geom.Point coordinate(double lat0, double lon0, double d, double azimuth)
lat0
- - start latitude in decimal degreeslon0
- - start longitude in decimal degreesd
- - distance from start in metersazimuth
- - bearing from start in degrees
public static double reminder(double y, double x)
y
- - dividendx
- - divisor
public static double normalizeAngle(double angle)
angle
- - angle to normalize
public static double convertDEG(double dem)
dem
- - decimal minutes
public static com.vividsolutions.jts.geom.Point random(com.vividsolutions.jts.geom.Envelope box, double max)
public static com.vividsolutions.jts.geom.Point random(com.vividsolutions.jts.geom.Point p, double max)
public static com.vividsolutions.jts.geom.Point toPoint(double lat, double lon)
public static com.vividsolutions.jts.geom.Point toPoint(String lat, String lon)
public static com.vividsolutions.jts.geom.Point toPoint(String packet, double lat, double lon)
public static String encodeLAT(double lat)
public static String encodeLON(double lon)
public static String encodeDIR(double crs, double spd)
public static String encodeALT(double alt)
public static String encodeCompressionType(String... flags)
flags
- - (optional array of) flags expressed as a binary string
public static String encodeCompressionType(int... flags)
flags
- - (optional array of) flags expressed as integer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |