Rise
The Vieneo Province
Toggle main menu visibility
Loading...
Searching...
No Matches
VehicleVisibility.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
VehicleVisibility
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
}
VehicleVisibility
Definition
VehicleVisibility.h:4
VehicleVisibility::AcrossCloudDeck
constexpr bool AcrossCloudDeck(float observerMslKm, float targetMslKm, float topMslKm=10.f)
Definition
VehicleVisibility.h:8
Viewscreen
VehicleVisibility.h
Generated on
for Rise by
1.18.0