|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.commons.utils.SunInfo
public class SunInfo
The SunInfo
supplies methods for the calculation of the sun position at a given time and latitude. The
color of the sunlight may be requested as well.
Constructor Summary | |
---|---|
SunInfo()
Constructs a sunposition at the current (local) time |
|
SunInfo(Calendar calendar)
Constructs a sunposition with the given Calendar |
|
SunInfo(int year,
int month,
int day,
int hour,
int minute)
|
Method Summary | |
---|---|
float |
calcSunlightIntensity(float[] color,
float cloudFactor)
|
float[] |
calculateSunlight(double latitude)
This method calculates the color of the sunlight for the current time and the given latitude. |
float[] |
getEucledianPosition(double latitude)
Get the euclidean position of the sun. |
double |
getHorizontalSunPosition()
calculates the horizontal angle of the sun depending only on hour and minute! |
double |
getVerticalSunposition(double latitude)
calculates the solar altitude for given latitude, year, month, date, hour and minute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SunInfo()
public SunInfo(Calendar calendar)
calendar
- a given Calendarpublic SunInfo(int year, int month, int day, int hour, int minute)
year
- month
- day
- hour
- minute
- Method Detail |
---|
public double getVerticalSunposition(double latitude)
latitude
- latitude of the the viewers position
public double getHorizontalSunPosition()
public float[] getEucledianPosition(double latitude)
latitude
-
public float[] calculateSunlight(double latitude)
latitude
-
public float calcSunlightIntensity(float[] color, float cloudFactor)
color
- to calculate the intensity for.cloudFactor
- scale factor [0,1] describing percentage of clouds covering the sun
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |