|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspice.basic.Units
spice.basic.AngularUnits
public class AngularUnits
Class AngularUnits represents angular units and supports conversion between them.
Version 1.0.0 18-DEC-2009 (NJB)
Field Summary | |
---|---|
static AngularUnits |
ARCSECONDS
ARCSECONDS represents 1/3600 of a degree. |
static AngularUnits |
DEGREES
DEGREES represents the unit degrees. |
static double |
DPR
DPR represents degrees per radian. |
static AngularUnits |
RADIANS
RADIANS represents the unit radians. |
static double |
RPD
RPD represents radians per degree. |
Constructor Summary | |
---|---|
AngularUnits(java.lang.String name)
Construct an angular unit from a string. |
Method Summary | |
---|---|
double |
toRadians()
Return the magnitude of this unit in radians. |
java.lang.String |
toString()
Return the name of this unit as a String. |
Methods inherited from class spice.basic.Units |
---|
convert |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final double DPR
public static final double RPD
public static final AngularUnits ARCSECONDS
public static final AngularUnits RADIANS
public static final AngularUnits DEGREES
Constructor Detail |
---|
public AngularUnits(java.lang.String name) throws SpiceException
The unit name must be one of the following:
"RADIANS" "DEGREES" "ARCMINUTES" "ARCSECONDS" "HOURANGLE" "MINUTEANGLE" "SECONDANGLE"
SpiceException
Method Detail |
---|
public java.lang.String toString()
toString
in class Units
public double toRadians()
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |