|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.nature.SunRelativePosition
Calcule la position du soleil relativement � la position de l'observateur. Cette classe re�oit en entr�s les coordonn�es spatio-temporelles de l'observateur, soit:
|
![]() |
Field Summary | |
static double |
ASTRONOMICAL_TWILIGHT
Elevation angle of astronomical twilight, in degrees. |
static double |
CIVIL_TWILIGHT
Elevation angle of civil twilight, in degrees. |
static double |
NAUTICAL_TWILIGHT
Elevation angle of nautical twilight, in degrees. |
Constructor Summary | |
SunRelativePosition()
Construct a sun relative position calculator. |
|
SunRelativePosition(double twilight)
Construct a sun relative position calculator with the specified value for the sun elevation at twilight. |
Method Summary | |
void |
compute(double longitude,
double latitude,
java.util.Date date)
Deprecated. Use setCoordinate(double,double) and setDate(Date) instead. |
double |
getAzimuth()
Retourne l'azimuth en degr�s. |
java.awt.geom.Point2D |
getCoordinate()
Returns the coordinate used for elevation and azimuth computation. |
java.util.Date |
getDate()
Returns the date used for elevation and azimuth computation. |
double |
getElevation()
Retourne l'�l�vation en degr�s. |
java.util.Date |
getNoonDate()
Retourne la date � laquelle le soleil est au plus haut dans la journ�e. |
long |
getNoonTime()
Retourne l'heure � laquelle le soleil est au plus haut. |
double |
getTwilight()
Returns the sun's elevation angle at twilight, in degrees. |
static void |
main(java.lang.String[] args)
Affiche la position du soleil � la date et coordonn�es sp�cifi�e. |
void |
setCoordinate(double longitude,
double latitude)
Set the geographic coordinate where to compute the elevation and azimuth. |
void |
setCoordinate(java.awt.geom.Point2D point)
Set the geographic coordinate where to compute the elevation and azimuth. |
void |
setDate(java.util.Date date)
Set the date and time when to compute the elevation and azimuth. |
void |
setTwilight(double twilight)
Set the sun's elevation angle at twilight, in degrees. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final double ASTRONOMICAL_TWILIGHT
public static final double NAUTICAL_TWILIGHT
public static final double CIVIL_TWILIGHT
Constructor Detail |
public SunRelativePosition()
public SunRelativePosition(double twilight) throws java.lang.IllegalArgumentException
twilight
- The new sun elevation at twilight, or Double.NaN
if no twilight value should be take in account.
java.lang.IllegalArgumentException
- if the twilight value is illegal.Method Detail |
public void compute(double longitude, double latitude, java.util.Date date)
setCoordinate(double,double)
and setDate(Date)
instead.
longitude
- Longitude in degrees.latitude
- Latitude in degrees.date
- Date, GMT timezone.public void setCoordinate(double longitude, double latitude)
longitude
- The longitude in degrees. Positive values are East; negative values are West.latitude
- The latitude in degrees. Positive values are North, negative values are South.public void setCoordinate(java.awt.geom.Point2D point)
point
- The geographic coordinates in degrees of longitude and latitude.public java.awt.geom.Point2D getCoordinate()
setCoordinate(...)
method.
public void setDate(java.util.Date date)
date
- The date and time.public java.util.Date getDate()
setDate(java.util.Date)
.
public void setTwilight(double twilight) throws java.lang.IllegalArgumentException
CIVIL_TWILIGHT
.
twilight
- The new sun elevation at twilight, or Double.NaN
if no twilight value should be take in account.
java.lang.IllegalArgumentException
- if the twilight value is illegal.public double getTwilight()
setTwilight(double)
.
public double getAzimuth()
public double getElevation()
public long getNoonTime()
public java.util.Date getNoonDate()
getNoonTime()
mais inclue le jour
de la date qui avait �t� sp�cifi�e � la m�thode compute(double, double, java.util.Date)
.
public static void main(java.lang.String[] args) throws java.text.ParseException
SunRelativePosition [longitude] [latitude] [date]o� date est un argument optionel sp�cifiant la date et l'heure. Si cet argument est omis, la date et heure actuelles seront utilis�es.
java.text.ParseException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |