Skip to content

Deceleration distance calculator for the Space Engine (Game)

License

Notifications You must be signed in to change notification settings

negativefix/decel_dist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deceleration distance calculator for Space Engine (Game)

A command-line utility to compute the distance needed to decelerate using Torricelli's equation.

Compilation

gcc decel_dist.c -lm -o decel_dist

Usage

Usage: decel_dist [a] <current_velocity> <max_speed> - both the current velocity and max speed are in kilometers

decel_dist 2843 0.1
# Output: Distance needed to decelerate is 40384820.000000 kilometers

decel_dist -a 2843 0.1
# Output: Distance needed to decelerate is 0.269956 AU

License

This project is available under the MIT license.

About

Deceleration distance calculator for the Space Engine (Game)

Resources

License

Stars

Watchers

Forks

Packages

No packages published