com.metsci.glimpse.util.geo.util
Class DistanceAzimuth
java.lang.Object
com.metsci.glimpse.util.geo.util.DistanceAzimuth
public class DistanceAzimuth
- extends java.lang.Object
- Author:
- moskowitz
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DistanceAzimuth
public DistanceAzimuth(double distance,
double azimuth)
fromEastNorth
public static DistanceAzimuth fromEastNorth(double distanceEast,
double distanceNorth)
- Factory method constructs DistanceAzimuth equivalent to combination of given distances East
and North. (Note: Negative values represent distances West and South respectively.) Azimuth
is based on directions at the start, meaning for instance if one passes a pole the directions
do not switch midway through.
- Parameters:
distanceEast
- distanceNorth
-
- Returns:
- equivalent DistanceAzimuth
getDistance
public final double getDistance()
getAzimuth
public final double getAzimuth()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2012 Metron, Inc.. All Rights Reserved.