Class Coordinate
java.lang.Object
zext.plantuml.com.ctreber.acearth.util.Coordinate
Latitude and longitude coordinate. Can be used as declination and right ascension as well.
© 2002 Christian Treber, ct@ctreber.com
-
Constructor Summary
ConstructorsConstructorDescriptionCoordinate(double pLat, double pLong) Construct a location specfied by two angles. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Coordinate lOther) Add position to this position, make sure coordinates are valid.booleancheck()Convert from ecliptic to equatorial coordinates (after duffett-smith, section 27)doublegetDE()doublegetLat()doublegetLong()Assumes coordinate is not in degrees but rads.doublegetRA()voidrenderAsXML(Writer writer) toString()voidwrap()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
-