|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.measure.angle.DecimalAngleUnit
DecimalAngleUnit provides constant object identifiers for the commonly used
decimal representations of Angle's.
The DecimalAngleUnits DEGREES and HOURS are
distinguished from the cooresponding SexagesimalAngleUnits of the same names
by their usage.
Angle constructors and methods that manipulate purely decimal quantities
require a DecimalAngleUnit parameter.
Angle constructors and methods that manipulate a value of degrees or hours
using sexigesimal sub-units require a SexagesimalAngleUnit parameter.
Angle,
DecimalAngle,
SexagesimalAngle,
SexagesimalAngleUnit| Field Summary | |
java.lang.String |
abreviation
The abreviated name of the unit of angle |
double |
degrees
The value of a single unit in decimal degrees |
static DecimalAngleUnit |
DEGREES
Constant identifier for units of decimal degrees |
static DecimalAngleUnit |
HOURS
Constant identifier for units of decimal hours |
long |
micros
The value of a single unit in microseconds of degree |
java.lang.String |
name
The name of the unit of angle |
static DecimalAngleUnit |
RADIANS
Constant identifier for units radians |
static DecimalAngleUnit |
REVOLUTIONS
Constant identifier for units revolutions |
java.lang.String |
symbol
The symbol of the unit of angle |
| Constructor Summary | |
protected |
DecimalAngleUnit(java.lang.String name,
java.lang.String abreviation,
java.lang.String symbol,
double degrees,
long micros)
Construct a DecimalAngleUnit object. |
| Method Summary | |
static DecimalAngleUnit[] |
getDecimalAngleUnits()
Return an array of the defined DecimalAngleUnit objects |
double |
getDegrees()
Return the double value of the unit in degrees. |
long |
getMicros()
Return the long value of the unit in microseconds of degree. |
java.lang.String |
toString()
Return a String representation ( the name String ) of this DecimalAngleUnit object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final DecimalAngleUnit DEGREES
public static final DecimalAngleUnit HOURS
public static final DecimalAngleUnit RADIANS
public static final DecimalAngleUnit REVOLUTIONS
public final java.lang.String name
public final java.lang.String abreviation
public final java.lang.String symbol
public final double degrees
public final long micros
| Constructor Detail |
protected DecimalAngleUnit(java.lang.String name,
java.lang.String abreviation,
java.lang.String symbol,
double degrees,
long micros)
DecimalAngleUnit object.
name - the unit of angle's identifiersymbol - the unit of angle's symboldegrees - the double value of a single unit in decimal degreesmicros - the long value of a single unit in microseconds of degree| Method Detail |
public double getDegrees()
double value of the unit in degrees.
getDegrees in interface AngleUnitdouble value of the unit in degrees.public long getMicros()
long value of the unit in microseconds of degree.
getMicros in interface AngleUnitlong value of the unit in microseconds of degree.public static DecimalAngleUnit[] getDecimalAngleUnits()
DecimalAngleUnit objects
DecimalAngleUnit objectspublic java.lang.String toString()
DecimalAngleUnit object.
DecimalAngleUnit object
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||