JNISpice
version 2.0.0

spice.basic
Class AngularUnits

java.lang.Object
  extended by spice.basic.Units
      extended by spice.basic.AngularUnits

public class AngularUnits
extends Units

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

DPR

public static final double DPR
DPR represents degrees per radian.


RPD

public static final double RPD
RPD represents radians per degree.


ARCSECONDS

public static final AngularUnits ARCSECONDS
ARCSECONDS represents 1/3600 of a degree.


RADIANS

public static final AngularUnits RADIANS
RADIANS represents the unit radians.


DEGREES

public static final AngularUnits DEGREES
DEGREES represents the unit degrees.

Constructor Detail

AngularUnits

public AngularUnits(java.lang.String name)
             throws SpiceException
Construct an angular unit from a string.

The unit name must be one of the following:

      "RADIANS"
      "DEGREES"
      "ARCMINUTES"
      "ARCSECONDS"
      "HOURANGLE"
      "MINUTEANGLE"
      "SECONDANGLE"
   

Throws:
SpiceException
Method Detail

toString

public java.lang.String toString()
Return the name of this unit as a String.

Specified by:
toString in class Units

toRadians

public double toRadians()
Return the magnitude of this unit in radians.


JNISpice
version 2.0.0

JNISpice Alpha Test Version 2.0.0 28-JAN-2017 (NJB)