|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hermit.utils.Angle
org.hermit.geo.Azimuth
public final class Azimuth
This class represents a geographic azimuth -- ie. a compass heading from or to a given geographic position.
Field Summary |
---|
Fields inherited from class org.hermit.utils.Angle |
---|
HALFPI, TWOPI |
Constructor Summary | |
---|---|
Azimuth(double radians)
Create an Azimuth from an azimuth given in radians. |
Method Summary | |
---|---|
Azimuth |
add(double radians)
Calculate the azimuth which is the given angular offset from this one. |
static Azimuth |
fromDegrees(double degrees)
Create a Azimuth from an azimuth given in degrees. |
Methods inherited from class org.hermit.utils.Angle |
---|
formatBearing, formatDeg, formatDegMin, formatDegMin, formatDegMin, formatDegMin, formatDegMinSec, formatDegMinSec, formatDegMinSec, formatFloat, formatLatLon, formatRightAsc, fromDegrees, fromRightAscension, getDegrees, getRadians, modPi, modTwoPi, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Azimuth(double radians)
radians
- Source azimuth in radians, clockwise from north.Method Detail |
---|
public static Azimuth fromDegrees(double degrees)
degrees
- Source azimuth in degrees, clockwise from north.
public Azimuth add(double radians)
add
in class Angle
radians
- Offset to add to this Azimuth, in radians;
positive is clockwise from north, may be
negative.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |