|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsGrs80
Distance and bearing routines based on GRS80 (NAD 83) ellipsoid.
| Constructor Summary | |
AimsGrs80()
Do not use. |
|
| Method Summary | |
static double |
atan2(double y,
double x)
|
static double[] |
crsdist_ell(double glat1,
double glon1,
double glat2,
double glon2)
|
static double[] |
direct_ell(double glat1,
double glon1,
double faz,
double s)
|
static double |
getCourse(AimsPoint fromPt,
AimsPoint toPt)
Returns the course bearing between two geographic points. |
static double |
getCourse(double lat1,
double lon1,
double lat2,
double lon2)
Returns the course bearing between two geographic points. |
static double |
getDistance(AimsPoint fromPt,
AimsPoint toPt)
Returns the distance between two geographic points. |
static double |
getDistance(double lat1,
double lon1,
double lat2,
double lon2)
Returns the distance between two geographic points. |
static double[] |
getDistanceAndCourse(double lat1,
double lon1,
double lat2,
double lon2)
Returns an array containin distance, course, and return course between two geographic points. |
static AimsPoint |
getPosition(AimsPoint fromPt,
double distance,
double bearing)
Returns an array containing the latitude and longitude of the position calculated at the specified distance and bearing from the specified geographic point. |
static double[] |
getPosition(double lat,
double lon,
double distance,
double bearing)
Returns an array containing the latitude and longitude of the position calculated at the specified distance and bearing from the specified geographic point. |
static double |
mod(double x,
double y)
|
static double |
modcrs(double x)
|
static double |
modlat(double x)
|
static double |
modlon(double x)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AimsGrs80()
| Method Detail |
public static double getCourse(AimsPoint fromPt,
AimsPoint toPt)
fromPt - An AimsPoint object containing geographic coordinates.toPt - An AimsPoint object containing geographic coordinates.
public static double getCourse(double lat1,
double lon1,
double lat2,
double lon2)
lat1 - The latitude of the first point.lon1 - The longitude of the first point. Degrees west should be negative.lat2 - The latitude of the second point.lon2 - The longitude of the second point. Degrees west should be negative.
public static double getDistance(AimsPoint fromPt,
AimsPoint toPt)
fromPt - An AimsPoint object containing geographic coordinates.toPt - An AimsPoint object containing geographic coordinates.
public static double getDistance(double lat1,
double lon1,
double lat2,
double lon2)
lat1 - The latitude of the first point.lon1 - The longitude of the first point. Degrees west should be negative.lat2 - The latitude of the second point.lon2 - The longitude of the second point. Degrees west should be negative.
public static double[] getDistanceAndCourse(double lat1,
double lon1,
double lat2,
double lon2)
lat1 - The latitude of the first point.lon1 - The longitude of the first point. Degrees west should be negative.lat2 - The latitude of the second point.lon2 - The longitude of the second point. Degrees west should be negative.
public static AimsPoint getPosition(AimsPoint fromPt,
double distance,
double bearing)
fromPt - An AimsPoint object containing geographic coordinates. Note
that degrees west should be negative.distance - The offset distance, in kilometres.bearing - The course bearing, in degrees.
public static double[] getPosition(double lat,
double lon,
double distance,
double bearing)
lat - The latitude of the origin point.lon - The longitude of the origin point. Degrees west should be negative.distance - The offset distance, in metres.bearing - The course bearing, in degrees.
public static double atan2(double y,
double x)
public static double[] crsdist_ell(double glat1,
double glon1,
double glat2,
double glon2)
public static double[] direct_ell(double glat1,
double glon1,
double faz,
double s)
public static double mod(double x,
double y)
public static double modcrs(double x)
public static double modlat(double x)
public static double modlon(double x)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||