|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grelf.astro.SkyPoint
public class SkyPoint
Representing a celestial position by equatorial coordinates (RA and Dec) for a given Epoch.
| Field Summary | |
|---|---|
protected double |
x
Equatorial coordinates for unit radius, held to avoid computing them more than once. |
protected double |
y
Equatorial coordinates for unit radius, held to avoid computing them more than once. |
protected double |
z
Equatorial coordinates for unit radius, held to avoid computing them more than once. |
| Constructor Summary | |
|---|---|
SkyPoint(RA ra,
Dec dec,
Epoch equinox)
|
|
| Method Summary | |
|---|---|
double[] |
calculateRiseTransitSet(JulianDate jd,
BodyKind kind,
Angle latitude)
Returns an array of 3 fractions of a day, representing respectively the local times of rising, transit and setting for the given latitude and refraction offset (h0 = -0.5667 for stars and planets, -0.8333 for the Sun, +0.125 for the Moon). |
SkyVector |
calculateSeparation(SkyPoint other)
Calculate position angle (PA) and spherical separation from this to another SkyPoint. |
void |
changeEquinox(Epoch newEquinox)
This adjusts the fields of the current object to the given new epoch, high accuracy version. |
void |
changeEquinoxLowAccuracy(Epoch newEquinox)
This adjusts the fields of the current object to the given new equinox, low accuracy version. |
SkyPoint |
clone()
Returns a new SkyPoint object with the same data. |
boolean |
equals(java.lang.Object other)
|
Dec |
getDec()
|
Epoch |
getEpoch()
Deprecated. |
Epoch |
getEquinox()
|
RA |
getRA()
|
int |
hashCode()
Enable objects of this class to be used as hash keys. |
java.lang.String |
toString()
|
java.lang.StringBuffer |
toXML()
Return |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double x
protected double y
protected double z
| Constructor Detail |
|---|
public SkyPoint(RA ra,
Dec dec,
Epoch equinox)
| Method Detail |
|---|
public RA getRA()
public Dec getDec()
@Deprecated public Epoch getEpoch()
public Epoch getEquinox()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic SkyPoint clone()
clone in class java.lang.Objectpublic void changeEquinoxLowAccuracy(Epoch newEquinox)
public void changeEquinox(Epoch newEquinox)
public SkyVector calculateSeparation(SkyPoint other)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.StringBuffer toXML()
public double[] calculateRiseTransitSet(JulianDate jd,
BodyKind kind,
Angle latitude)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||