|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjme3tools.navigation.Coordinate
public class Coordinate
Coordinate class. Used to store a coordinate in [DD]D MM.M format.
Field Summary | |
---|---|
static int |
DEGPRECISION
|
static int |
E
|
static int |
LAT
|
static int |
LNG
|
static int |
MINPRECISION
|
static int |
N
|
static int |
S
|
static int |
W
|
Constructor Summary | |
---|---|
Coordinate(double decCoordinate,
int coOrdinate)
Constructor |
|
Coordinate(int deg,
float minsDecMins,
int coOrdinate,
int quad)
Constructor |
|
Coordinate(java.lang.String coOrdinate)
This constructor takes a coordinate in the ALRS formats i.e 38∞31.64'N for lat, and 28∞19.12'W for long Note: ALRS positions are occasionally written with the decimal minutes apostrophe in the 'wrong' place and with an non CP1252 compliant decimal character. |
Method Summary | |
---|---|
double |
decVal()
Returns the coordinate's decimal value |
java.lang.String |
toStringDec()
Prints out a coordinate as a string |
java.lang.String |
toStringDegMin()
Prints out a coordinate as a string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MINPRECISION
public static final int DEGPRECISION
public static final int LAT
public static final int LNG
public static final int E
public static final int S
public static final int W
public static final int N
Constructor Detail |
---|
public Coordinate(int deg, float minsDecMins, int coOrdinate, int quad) throws InvalidPositionException
deg
- minsDecMins
- coOrdinate
- quad
-
InvalidPositionException
public Coordinate(double decCoordinate, int coOrdinate) throws InvalidPositionException
decCoordinate
- coOrdinate
-
InvalidPositionException
public Coordinate(java.lang.String coOrdinate) throws InvalidPositionException
coOrdinate
-
InvalidPositionException
Method Detail |
---|
public java.lang.String toStringDegMin()
public java.lang.String toStringDec()
public double decVal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |