user.util
Class GeomUtil
java.lang.Object
|
+--user.util.GeomUtil
- public class GeomUtil
- extends java.lang.Object
Geometric utilities. Decimal to sexagesimal conversions. Contains
only static methods.
Method Summary |
static java.lang.String |
DecToSex(double v)
Converts decimal to sexagesimmal. |
static java.lang.String |
DecToSex(double v,
int output)
|
static double |
SexToDec(java.lang.String degrees,
java.lang.String minutes)
Converts Sexagesimal to decimal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTML
public static final int HTML
- See Also:
- Constant Field Values
SHELL
public static final int SHELL
- See Also:
- Constant Field Values
SWING
public static final int SWING
- See Also:
- Constant Field Values
GeomUtil
public GeomUtil()
SexToDec
public static double SexToDec(java.lang.String degrees,
java.lang.String minutes)
throws java.lang.RuntimeException
- Converts Sexagesimal to decimal. Return a double.
- Parameters:
degrees
- the value of the degrees. It's an intminutes
- the value of the minutes. Can be decimal, like 45.67
java.lang.RuntimeException
DecToSex
public static java.lang.String DecToSex(double v)
- Converts decimal to sexagesimmal. Return an ASCII string
- Parameters:
v
- the double value to convert.
DecToSex
public static java.lang.String DecToSex(double v,
int output)