ACE3/addons/weather/functions/fnc_calculateSpeedOfSound.sqf

19 lines
349 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
/*
* Author: Ruthberg
* Calculates the speed of sound for a given temperature
*
* Arguments:
* temperature - degrees celsius <NUMBER>
*
* Return Value:
* speed of sound - m/s <NUMBER>
*
* Example:
* 0 call ace_weather_fnc_calculateSpeedOfSound
*
* Public: No
*/
(331.3 * sqrt(1 + (_this / 273.15)))