public class SkyPoint
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
SkyPoint(RA ra,
Dec dec,
Epoch equinox) |
Modifier and Type | Method and Description |
---|---|
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 |
getEquinox()
Deprecated: name changed to getEquinox.
|
RA |
getRA() |
int |
hashCode()
Enable objects of this class to be used as hash keys.
|
java.lang.String |
toFoldedString(java.lang.String lineFeed) |
java.lang.String |
toString() |
java.lang.StringBuffer |
toXML()
Return
|
protected double x
protected double y
protected double z
public RA getRA()
public Dec getDec()
public Epoch getEquinox()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SkyPoint clone()
clone
in class java.lang.Object
public void changeEquinoxLowAccuracy(Epoch newEquinox)
public void changeEquinox(Epoch newEquinox)
public SkyVector calculateSeparation(SkyPoint other)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toFoldedString(java.lang.String lineFeed)
public java.lang.StringBuffer toXML()
public double[] calculateRiseTransitSet(JulianDate jd, BodyKind kind, Angle latitude)