Crates.io | aviation-calculator |
lib.rs | aviation-calculator |
version | 0.2.2 |
source | src |
created_at | 2023-04-16 21:59:53.274841 |
updated_at | 2023-08-03 23:00:59.883802 |
description | Useful calculations for aviators |
homepage | |
repository | https://github.com/php-perfect/aviation-calculator |
max_upload_size | |
id | 840943 |
size | 45,647 |
The goal of this library is to provide a collection of useful calculations for aviators to use in other projects.
The functions are grouped by the general topics of navigation, meteorology and utilities, which mainly contain unit conversion functions. There are also FK9 Mk VI specific performance calculations.
All calculations are based on official sources and use official examples to verify correctness in automated tests.
Feel free to use this library in your projects and to contribute to it.
You can install this library as a crate using the rust package manager cargo by running cargo add aviation-calculator
in your project.
For a complete list of available functions, see the automatically generated documentation for this crate.
use aviation_calculator::meteorology::*;
let pressure_altitude: f64 = pressure_altitude_by_qnh(996.0, 113.7);
let icao_default_temperature = icao_temperature(pressure_altitude).unwrap();
use aviation_calculator::navigation::*;
let my_speed = 110.0;
let wind_speed = 12.0;
let acute_wind_angle = 20.0;
let wca = wind_correction_angle(my_speed, wind_speed, acute_wind_angle);
And much more...