|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object triptracker.core.Sexagesimal
public class Sexagesimal
Util class to represent a coordinate in sexagesimal format.
Constructor Summary | |
---|---|
Sexagesimal(double degrees)
|
|
Sexagesimal(int degrees,
int minutes,
double seconds)
|
Method Summary | |
---|---|
static Sexagesimal |
decToSex(double degrees)
|
int |
getDeg()
|
int |
getMin()
|
double |
getSec()
|
String |
toString()
Returns a sexagesimal formatted string representation of a coordinate. |
static String |
toString(double degrees)
Returns a sexagesimal formatted string representation of a coordinate. |
String |
toString(int decimals)
Returns a sexagesimal formatted string representation of a coordinate with the given number of decimals for seconds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Sexagesimal(int degrees, int minutes, double seconds)
public Sexagesimal(double degrees)
Method Detail |
---|
public static Sexagesimal decToSex(double degrees)
public int getDeg()
public int getMin()
public double getSec()
public String toString()
toString
in class Object
Object.toString()
public String toString(int decimals)
decimals
-
public static String toString(double degrees)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |