|
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.DistanceUnits
public class DistanceUnits
Class DistanceUnits represents distance units and supports conversion between them.
Version 1.0.0 21-DEC-2009 (NJB)
Field Summary | |
---|---|
static DistanceUnits |
AU
AU represents astronomical units. |
static DistanceUnits |
KM
KM represents kilometers |
static DistanceUnits |
METERS
METERS represents meters. |
Method Summary | |
---|---|
double |
toKm()
Return the magnitude of this unit in km. |
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 DistanceUnits AU
public static final DistanceUnits KM
public static final DistanceUnits METERS
Method Detail |
---|
public java.lang.String toString()
toString
in class Units
public double toKm() throws SpiceException
SpiceException
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |