Crates.io | easy_trajectories |
lib.rs | easy_trajectories |
version | 0.1.2 |
source | src |
created_at | 2022-03-04 08:10:27.921605 |
updated_at | 2022-03-04 18:07:51.045231 |
description | Simple to use trajectory calculator with drag. |
homepage | https://kadulous0.github.io/easy_trajectories/ |
repository | https://github.com/Kadulous0/easy_trajectories |
max_upload_size | |
id | 543391 |
size | 15,735 |
Simple to use trajectory simulations for Rust
To install go to https://crates.io/crates/easy_trajectories and copy the lines under the install area to always get the latest version.
To use easy_trajectories, just add
use easy_trajectories
or
use easy_trajectories as e_traj // <--- or whatever alias you prefer
Example of the find_distance_angle() function:
use easy_trajectory as e_traj;
let (distance, angle) = e_traj::simulation::find_distance_angle(drag, velocity, mass, gravity, max_time, precision, vertical_distance);
println!("Distance : {}", distance);
println!("Angle : {}", angle);
More detailed documentation for each function in the simulation.rs file above each function explaining, use case, inputs, outputs, and what numbers should go in. Later I will implement functions to verify inputs are valid instead of manual understanding.
Function names are subject to change, and they will probably change.