Determines if a satellite is illuminated by the sun.

Namespace: Zeptomoby.OrbitTools.Track
Assembly: Zeptomoby.OrbitTools.Track (in Zeptomoby.OrbitTools.Track.dll) Version: (


public static bool InSunlight(
	this Satellite sat,
	DateTime utc
Visual Basic
<ExtensionAttribute> _
Public Shared Function InSunlight ( _
	sat As Satellite, _
	utc As DateTime _
) As Boolean
Visual C++
static bool InSunlight(
	Satellite^ sat, 
	DateTime utc


Type: Satellite
The satellite.
Type: System..::..DateTime
The time of calculation.

Return Value

Returns 'true' if the satellite is illuminated by the sun. A satellite is considered illuminated if it is not in the Earth's shadow.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Satellite. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also