Class Coordinate
java.lang.Object
ext.plantuml.com.ctreber.acearth.util.Coordinate
Latitude and longitude coordinate. Can be used as declination and right ascension as well.
© 2002 Christian Treber, [email protected]
-
Constructor Summary
ConstructorsConstructorDescriptionCoordinate
(double pLat, double pLong) Construct a location specfied by two angles. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Coordinate lOther) Add position to this position, make sure coordinates are valid.boolean
check()
Convert from ecliptic to equatorial coordinates (after duffett-smith, section 27)double
getDE()
double
getLat()
double
getLong()
Assumes coordinate is not in degrees but rads.double
getRA()
void
renderAsXML
(Writer writer) toString()
void
wrap()
Warp coordinates exceeding valid values.
-
Constructor Details
-
Coordinate
public Coordinate() -
Coordinate
public Coordinate(double pLat, double pLong) Construct a location specfied by two angles. Your choice if in degrees or rads, but keep track!
- Parameters:
pLong
- Longitude or RApLat
- Latitude or DE
-
-
Method Details
-
renderAsXML
- Throws:
IOException
-
getPoint3D
-
getPoint3DRads
Assumes coordinate is not in degrees but rads.
- Returns:
-
eclipticToEquatorial
Convert from ecliptic to equatorial coordinates (after duffett-smith, section 27)
-
add
Add position to this position, make sure coordinates are valid.
-
wrap
public void wrap()Warp coordinates exceeding valid values. Happens when latitudes and longitudes are added or substracted.
-
getLat
public double getLat() -
getDE
public double getDE() -
getLong
public double getLong() -
getRA
public double getRA() -
check
public boolean check() -
toString
-