Package uk.ac.starlink.ttools.cone
Class AngleUnits
- java.lang.Object
-
- uk.ac.starlink.ttools.cone.AngleUnits
-
public class AngleUnits extends java.lang.Object
Defines a unit of angle measurement.- Since:
- 5 Nov 2007
- Author:
- Mark Taylor
-
-
Field Summary
Fields Modifier and Type Field Description static AngleUnits
DEGREES
Degrees.static AngleUnits
RADIANS
Radians.
-
Constructor Summary
Constructors Constructor Description AngleUnits(java.lang.String name, double circle)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
double
getCircle()
Returns the number of these units in an entire revolution.java.lang.String
getName()
Returns the name of this unit.int
hashCode()
-
-
-
Field Detail
-
DEGREES
public static final AngleUnits DEGREES
Degrees.
-
RADIANS
public static final AngleUnits RADIANS
Radians.
-
-
Method Detail
-
getCircle
public double getCircle()
Returns the number of these units in an entire revolution.- Returns:
- quantity in a circle
-
getName
public java.lang.String getName()
Returns the name of this unit.- Returns:
- name
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-