Determines if a location on earth is illuminated by the sun.
Namespace: Zeptomoby.OrbitTools.TrackAssembly: Zeptomoby.OrbitTools.Track (in Zeptomoby.OrbitTools.Track.dll) Version: 1.5.0.0 (1.5.0.0)
Syntax
C# |
---|
public static bool InSunlight( this Site site, Julian date, double degTwilight ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function InSunlight ( _ site As Site, _ date As Julian, _ degTwilight As Double _ ) As Boolean |
Visual C++ |
---|
[ExtensionAttribute] public: static bool InSunlight( Site^ site, Julian^ date, double degTwilight ) |
Parameters
- site
- Type: Site
The earth location.
- date
- Type: Julian
Time of calculation.
- degTwilight
- Type: System..::..Double
The elevation angle of the sun when twilight begins, in degrees.
Return Value
Returns 'true' if the site is illuminated by sunlight. The site is assumed to be in sunlight for all sun elevation angles that exceed the twilight angle.Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Site. When you use instance method syntax to call this method, omit the first parameter. For more information, seeRemarks
Some common twilight angles, in degrees:
-6.0 Civil Twilight
-12.0 Nautical Twilight
-18.0 Astronomical Twilight