#ksp #kerbal-space-program #graph-node #delta-v

deltav_calc

Allows you to generate a graph representing a delta'v map used in the game Kerbal Space Program

1 unstable release

0.1.0 Nov 10, 2022

#1101 in Math

BSD-3-Clause

47KB
886 lines

deltav_calc_lib

A crate to generate a graph of the popular delta-v maps used in the game Kerbal Space Program. It allows you to calculate the deltav requirements to get from one point to another and get a tree representation of the graphs nodes to be used in menus


lib.rs:

A crate to generate a graph of the popular delta-v maps used in the game Kerbal Space Program. It allows you to calculate the deltav to get from one point

Example

use deltav_calc::DeltavMap;

let stock_map = DeltavMap::new_stock();
let deltav = stock_map.calculate_delta_v("Kerbin Surface", "Mun Surface");

Dependencies

~2.2–3MB
~52K SLoC