Package uk.ac.starlink.ttools.cone
Class AngleUnits
- java.lang.Object
-
- uk.ac.starlink.ttools.cone.AngleUnits
-
public class AngleUnits extends java.lang.ObjectDefines a unit of angle measurement.- Since:
- 5 Nov 2007
- Author:
- Mark Taylor
-
-
Field Summary
Fields Modifier and Type Field Description static AngleUnitsDEGREESDegrees.static AngleUnitsRADIANSRadians.
-
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 booleanequals(java.lang.Object other)doublegetCircle()Returns the number of these units in an entire revolution.java.lang.StringgetName()Returns the name of this unit.inthashCode()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-