uk.ac.starlink.ttools.cone
Class AngleUnits

java.lang.Object
  extended by uk.ac.starlink.ttools.cone.AngleUnits

public class AngleUnits
extends Object

Defines a unit of angle measurement.

Since:
5 Nov 2007
Author:
Mark Taylor

Field Summary
static AngleUnits DEGREES
          Degrees.
static AngleUnits RADIANS
          Radians.
 
Constructor Summary
AngleUnits(String name, double circle)
          Constructor.
 
Method Summary
 boolean equals(Object other)
           
 double getCircle()
          Returns the number of these units in an entire revolution.
 String getName()
          Returns the name of this unit.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEGREES

public static final AngleUnits DEGREES
Degrees.


RADIANS

public static final AngleUnits RADIANS
Radians.

Constructor Detail

AngleUnits

public AngleUnits(String name,
                  double circle)
Constructor.

Parameters:
name - unit name
circle - number of units in an entire revolution
Method Detail

getCircle

public double getCircle()
Returns the number of these units in an entire revolution.

Returns:
quantity in a circle

getName

public String getName()
Returns the name of this unit.

Returns:
name

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.