|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.pal.AngleDR
public class AngleDR
Angle consisting of (α, δ) pairs in Radians
Constructor Summary | |
---|---|
AngleDR(double a,
double d)
Angle consisting of (alpha, delta). |
|
AngleDR(double a,
double d,
double r)
Angle consisting of (α, δ) pair and optional radial. |
Method Summary | |
---|---|
double |
getAlpha()
Get the first component of the angle |
double |
getDelta()
Get the second component of the angle |
double |
getRadial()
Get the Radial component of the angle |
void |
setAlpha(double a)
Set the first component of the angle |
void |
setDelta(double d)
Set the second component of the angle |
void |
setRad(double r)
Set the Radial component of the angle |
String |
toString()
Get string representation of Angle as bracketed pair (or triplet) |
String |
toString(int n)
Get string representation of Angle to n decimal places as two (or three) numbers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AngleDR(double a, double d, double r)
a
- alphad
- deltar
- radialpublic AngleDR(double a, double d)
a
- Alphad
- DeltaMethod Detail |
---|
public void setAlpha(double a)
a
- αpublic void setDelta(double d)
d
- δpublic void setRad(double r)
r
- Radialpublic double getAlpha()
public double getDelta()
public double getRadial()
public String toString(int n)
n
- Number of decimal places
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |