Skip to content

Kadulous0/easy_trajectories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple to use trajectory simulations for Rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages