|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.cone.AngleUnits
public class AngleUnits
Defines a unit of angle measurement.
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 |
---|
public static final AngleUnits DEGREES
public static final AngleUnits RADIANS
Constructor Detail |
---|
public AngleUnits(String name, double circle)
name
- unit namecircle
- number of units in an entire revolutionMethod Detail |
---|
public double getCircle()
public String getName()
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |