Rise
The Vieneo Province
Loading...
Searching...
No Matches
VehicleVisibility.h
Go to the documentation of this file.
1#pragma once
2
4{
5 // Altitudes are kilometres above mean sea level, not terrain clearance.
6 // Keep the exact boundary visible from either side to avoid a missing row
7 // of vehicles when the observer or target is exactly on the cloud top.
8 constexpr bool AcrossCloudDeck(float observerMslKm,float targetMslKm,float topMslKm=10.f)
9 {
10 return (observerMslKm>topMslKm && targetMslKm<topMslKm) ||
11 (observerMslKm<topMslKm && targetMslKm>topMslKm);
12 }
13}
constexpr bool AcrossCloudDeck(float observerMslKm, float targetMslKm, float topMslKm=10.f)