|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ctreber.acearth.util.SunPositionCalculator
public class SunPositionCalculator
Calculates the position of the point on Earth which is directly below the sun or the moon.
© 2002 Christian Treber, [email protected]
Constructor Summary | |
---|---|
SunPositionCalculator()
|
Method Summary | |
---|---|
static Coordinate |
getMoonPositionOnEarth(long pMillis)
Given a particular time (expressed in milliseconds since the unix epoch), compute position on the earth (lat, lon) such that the moon is directly overhead. |
static Coordinate |
getSunPositionOnEarth(long pMillis)
Given a particular time (expressed in milliseconds since the unix epoch), compute position on the earth (lat, lon) such that sun is directly overhead. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SunPositionCalculator()
Method Detail |
---|
public static Coordinate getSunPositionOnEarth(long pMillis)
Given a particular time (expressed in milliseconds since the unix epoch), compute position on the earth (lat, lon) such that sun is directly overhead.
Verified.
pMillis
- seconds since unix epochpublic static Coordinate getMoonPositionOnEarth(long pMillis)
Given a particular time (expressed in milliseconds since the unix epoch), compute position on the earth (lat, lon) such that the moon is directly overhead. Based on duffett-smith **2nd ed** section 61; combines some steps into single expressions to reduce the number of extra variables.
Verified.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |