|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjaron.autopilot.Navigation
public class Navigation
The Navigation
class provides the functionality for navigating
a vehicle using navigation waypoints.
Constructor Summary | |
---|---|
Navigation()
|
Method Summary | |
---|---|
static double |
getCourseInDegrees(double lat1,
double lon1,
double lat2,
double lon2)
Returns the course defined by two coordinates. |
static double |
getCourseInRadians(double lat1,
double lon1,
double lat2,
double lon2)
Returns the course defined by two coordinates. |
static Waypoint |
getDestinationPoint(Waypoint start,
double bearing,
double distance)
Returns the destination point given ba a start point the initial bearing (deg) and the distance (m). |
static double |
getDistanceInMeters(double lat1,
double lon1,
double lat2,
double lon2)
Returns the distance between two coordinates. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Navigation()
Method Detail |
---|
public static double getDistanceInMeters(double lat1, double lon1, double lat2, double lon2)
lat1
- the start latitude in decimal formlon1
- the start longitude in decimal formlat2
- the destination latitude in decimal formlon2
- the destination longitude in decimal form
public static double getCourseInRadians(double lat1, double lon1, double lat2, double lon2)
lat1
- the start latitude in decimal formlon1
- the start longitude in decimal formlat2
- the destination latitude in decimal formlon2
- the destination longitude in decimal form
public static double getCourseInDegrees(double lat1, double lon1, double lat2, double lon2)
lat1
- the start latitude in decimal formlon1
- the start longitude in decimal formlat2
- the destination latitude in decimal formlon2
- the destination longitude in decimal form
public static Waypoint getDestinationPoint(Waypoint start, double bearing, double distance)
start
- start point as a waypoint coordinatebearing
- bearing in degreesdistance
- distance in meters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |