|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ctreber.acearth.util.Coordinate
public class Coordinate
Latitude and longitude coordinate. Can be used as declination and right ascension as well.
© 2002 Christian Treber, [email protected]
Constructor Summary | |
---|---|
Coordinate()
|
|
Coordinate(double pLat,
double pLong)
Construct a location specfied by two angles. |
Method Summary | |
---|---|
void |
add(Coordinate lOther)
Add position to this position, make sure coordinates are valid. |
boolean |
check()
|
Coordinate |
eclipticToEquatorial()
Convert from ecliptic to equatorial coordinates (after duffett-smith, section 27) |
double |
getDE()
|
double |
getLat()
|
double |
getLong()
|
Point3D |
getPoint3D()
|
Point3D |
getPoint3DRads()
Assumes coordinate is not in degrees but rads. |
double |
getRA()
|
void |
renderAsXML(Writer writer)
|
String |
toString()
|
void |
wrap()
Warp coordinates exceeding valid values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Coordinate()
public Coordinate(double pLat, double pLong)
Construct a location specfied by two angles. Your choice if in degrees or rads, but keep track!
pLong
- Longitude or RApLat
- Latitude or DEMethod Detail |
---|
public void renderAsXML(Writer writer) throws IOException
IOException
public Point3D getPoint3D()
public Point3D getPoint3DRads()
Assumes coordinate is not in degrees but rads.
public Coordinate eclipticToEquatorial()
Convert from ecliptic to equatorial coordinates (after duffett-smith, section 27)
public void add(Coordinate lOther)
Add position to this position, make sure coordinates are valid.
public void wrap()
Warp coordinates exceeding valid values. Happens when latitudes and longitudes are added or substracted.
public double getLat()
public double getDE()
public double getLong()
public double getRA()
public boolean check()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |