|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.h2gis.h2spatialext.function.spatial.earth.SunCalc
public class SunCalc
This class is a partial Java port of SunCalc. A BSD-licensed JavaScript library for calculating sun position, sunlight phases (times for sunrise, sunset, dusk, etc.), moon position and lunar phase for the given location and time, created by Vladimir Agafonkin (@mourner) as a part of the SunCalc.net project.
| Method Summary | |
|---|---|
static com.vividsolutions.jts.geom.Coordinate |
getPosition(Date date,
double lat,
double lng)
Returns the sun position as a coordinate with the following properties x: sun azimuth in radians (direction along the horizon, measured from south to west), e.g. 0 is south and Math.PI * 3/4 is northwest. |
static boolean |
isGeographic(double latitude,
double longitude)
Test if the point has valid latitude and longitude coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static com.vividsolutions.jts.geom.Coordinate getPosition(Date date,
double lat,
double lng)
date - lat - lng -
public static boolean isGeographic(double latitude,
double longitude)
latitude - longitude -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||