From 1d97d8df608c4539f3a548d68466f856bf39c680 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Sat, 14 May 2022 10:13:31 -0400 Subject: [PATCH] add orbitTimeSincePeriapsis prototype --- src/orbits.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/orbits.cpp b/src/orbits.cpp index 5ffec78..01baf43 100644 --- a/src/orbits.cpp +++ b/src/orbits.cpp @@ -266,7 +266,10 @@ orbitClampAngle(double theta) } double -orbitGetTimeOfFlight(system_2body sys, double theta_0, double theta_1) +orbitTimeSincePeriapsis(system_2body sys, double theta); + +double +orbitGetTimeOfFlight(system_2body sys, double theta_begin, double theta_end) { double e = sys.ep.e;