mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
The AI isn't making use of these yet, but it's not smart enough to do so anyway. Would benefit from an icon to differentiate it on the map. I'm stretching the definition of "control point" quite a bit. We might want to put a class above `ControlPoint` for `AirSpawnLocation` to represent types of spawn locations that can't be captured and don't have ground objectives. Fixes https://github.com/Khopa/dcs_liberation/issues/274
19 lines
419 B
Python
19 lines
419 B
Python
def meter_to_feet(value_in_meter: float) -> int:
|
|
return int(3.28084 * value_in_meter)
|
|
|
|
|
|
def feet_to_meter(value_in_feet: float) -> int:
|
|
return int(value_in_feet / 3.28084)
|
|
|
|
|
|
def meter_to_nm(value_in_meter: float) -> int:
|
|
return int(value_in_meter / 1852)
|
|
|
|
|
|
def nm_to_meter(value_in_nm: float) -> int:
|
|
return int(value_in_nm * 1852)
|
|
|
|
|
|
def knots_to_kph(knots: float) -> int:
|
|
return int(knots * 1.852)
|