mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
440 B
Plaintext
21 lines
440 B
Plaintext
|
#include "..\script_component.hpp"
|
||
|
/*
|
||
|
* Author: Brett Mayson
|
||
|
* Calculates the oxygen density
|
||
|
*
|
||
|
* Arguments:
|
||
|
* 0: Temperature - °C <NUMBER>
|
||
|
* 1: Pressure - hPa <NUMBER>
|
||
|
* 2: Relative humidity - value between 0.0 and 1.0 <NUMBER>
|
||
|
*
|
||
|
* Return Value:
|
||
|
* Density of oxygen - kg * m^(-3) <NUMBER>
|
||
|
*
|
||
|
* Example:
|
||
|
* [0, 1020] call ace_weather_fnc_calculateOxygenDensity
|
||
|
*
|
||
|
* Public: No
|
||
|
*/
|
||
|
|
||
|
(_this call FUNC(calculateAirDensity)) * 0.21
|