|
WSF
|
A set of utilities relating to the Solar terminator. More...
Enumerations | |
| enum class | PhaseOfDay { cDAY = 1 , cTWILIGHT = 2 , cNIGHT = 3 } |
| enum class | PlatformSolarIllumination { cINVALID_PLATFORM = 0 , cILLUMINATED = 1 , cEARTH_PENUMBRA = 2 , cEARTH_UMBRA = 3 } |
Functions | |
| PhaseOfDay | GetPhaseOfDay (double aLatDegrees, double aLonDegrees, const UtCalendar &aTime, double aLimitDegrees) |
| bool | MaskedByHorizon (const double aObserverWCS[3], const double aTargetWCS[3]) |
| PlatformSolarIllumination | GetPlatformSolarIllumination (WsfPlatform *aPlatformPtr) |
Variables | |
| constexpr double | cTWILIGHT_CIVIL = 96.0 |
| constexpr double | cTWILIGHT_NAUTICAL = 102.0 |
| constexpr double | cTWILIGHT_ASTRONOMICAL = 108.0 |
A set of utilities relating to the Solar terminator.
|
strong |
|
strong |
| WSF_SPACE_EXPORT PhaseOfDay WsfSolarTerminator::GetPhaseOfDay | ( | double | aLatDegrees, |
| double | aLonDegrees, | ||
| const UtCalendar & | aTime, | ||
| double | aLimitDegrees ) |
Return the given location's state with respect to the solar terminator.
| aLatDegrees | The latitude of interest. |
| aLonDegrees | The longitude of interest. |
| aTime | The time of interest. |
| aLimitDegrees | The angle limit giving the end of twilight. |
References cDAY, cNIGHT, and cTWILIGHT.
Referenced by UT_DEFINE_SCRIPT_METHOD().
| WSF_SPACE_EXPORT PlatformSolarIllumination WsfSolarTerminator::GetPlatformSolarIllumination | ( | WsfPlatform * | aPlatformPtr | ) |
Return qualitatively how much illumination the given platform is receiving from the sun. This will determine based on the location of the platform as of its most recent update if the platform is illuminated, in the Earth's penumbra, or in the Earth's umbra. This method will only given valid results for a platform that is part of a simulation.
| aPlatformPtr | The platform in question. |
References cEARTH_PENUMBRA, cEARTH_UMBRA, cILLUMINATED, cINVALID_PLATFORM, WsfDateTime::GetCurrentTime(), WsfSimulation::GetDateTime(), WsfPlatform::GetLastUpdateTime(), WsfPlatform::GetSimulation(), and MaskedByHorizon().
Referenced by UT_DEFINE_SCRIPT_METHOD().
| WSF_SPACE_EXPORT bool WsfSolarTerminator::MaskedByHorizon | ( | const double | aObserverWCS[3], |
| const double | aTargetWCS[3] ) |
Return if the given target location is masked by the horizon when viewed from the observer location. Note that this does not take terrain into account.
| aObserverWCS | The observer's location. |
| aTargetWCS | The target's location. |
Referenced by GetPlatformSolarIllumination().
|
constexpr |
Referenced by UT_DEFINE_SCRIPT_METHOD().
|
constexpr |
Referenced by UT_DEFINE_SCRIPT_METHOD().
|
constexpr |
Referenced by UT_DEFINE_SCRIPT_METHOD().