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.


Field Summary
static int HTML
           
static int SHELL
           
static int SWING
           
 
Constructor Summary
GeomUtil()
           
 
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
 

Field Detail

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
Constructor Detail

GeomUtil

public GeomUtil()
Method Detail

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 int
minutes - 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)