easy_trajectories

Crates.ioeasy_trajectories
lib.rseasy_trajectories
version0.1.2
sourcesrc
created_at2022-03-04 08:10:27.921605
updated_at2022-03-04 18:07:51.045231
descriptionSimple to use trajectory calculator with drag.
homepagehttps://kadulous0.github.io/easy_trajectories/
repositoryhttps://github.com/Kadulous0/easy_trajectories
max_upload_size
id543391
size15,735
Kadulous (Kadulous0)

documentation

README

easy_trajectories

Simple to use trajectory simulations for Rust

Install

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

Usage

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.

Commit count: 7

cargo fmt