| java.lang.Object org.cougaar.logistics.plugin.seanet.GreatCircle
GreatCircle | public class GreatCircle (Code) | | A stateful great circle calculator.
The theory is presented in
Partial Evaluation - Freeing the essence of a computation.
Two lat,lon points are kept in a 3D unit vector representation.
Once the two points are set, various distance*() and azimuth() function
may be called.
The method position() computes the position of a fractional distance along the great circle between the points.
|
Method Summary | |
public double | azimuth() Returns the azimuth from point1 to point2 in degees. | public double | distanceKM(double lat, double lon) Compute distance in kilometers. | public double | distanceKM() Distance in kilometers between the two points. | public double | distanceNM(double lat1, double lon1, double lat2, double lon2) Compute distance in nautical miles. | public double | distanceNM(double lat, double lon) Distance in nautical miles from the first point and this location. | public double | distanceNM() Distance in nautical miles between the two points. | public double | getPositionLatitude() Return the latitude of the current position. | public double | getPositionLongitude() Return the longiute of the current position. | public void | setPoint1(double lat, double lon) | public void | setPoint2(double lat, double lon) |
GreatCircle | public GreatCircle()(Code) | | |
GreatCircle | public GreatCircle(double lat, double lon)(Code) | | |
azimuth | public double azimuth()(Code) | | Returns the azimuth from point1 to point2 in degees. *
|
distanceKM | public double distanceKM(double lat, double lon)(Code) | | Compute distance in kilometers. *
|
distanceKM | public double distanceKM()(Code) | | Distance in kilometers between the two points. *
|
distanceNM | public double distanceNM(double lat1, double lon1, double lat2, double lon2)(Code) | | Compute distance in nautical miles. *
|
distanceNM | public double distanceNM(double lat, double lon)(Code) | | Distance in nautical miles from the first point and this location. *
|
distanceNM | public double distanceNM()(Code) | | Distance in nautical miles between the two points. *
|
getPositionLatitude | public double getPositionLatitude()(Code) | | Return the latitude of the current position. *
|
getPositionLongitude | public double getPositionLongitude()(Code) | | Return the longiute of the current position. *
|
setPoint1 | public void setPoint1(double lat, double lon)(Code) | | Set the first point.*
|
setPoint2 | public void setPoint2(double lat, double lon)(Code) | | Set the second point.*
|
|
|