From 80322773a99476be5630167000f3f0ebbbda71f4 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Wed, 25 May 2022 12:42:48 -0400 Subject: [PATCH] update gooey text alignment --- src/gooey.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gooey.cpp b/src/gooey.cpp index 4c22976..ece98c5 100644 --- a/src/gooey.cpp +++ b/src/gooey.cpp @@ -207,16 +207,16 @@ void drawSystemWindow(TwoBodySystem& sys) { ImGui::Text("System Info:"); ImGui::Indent(); - ImGui::Text("orbital period: %f", sys.orbital_period); + ImGui::Text("orbital period: %.2f s", sys.orbital_period); ImGui::Text("epsilon, spec. orb. energy: %f", sys.epsilon); ImGui::Text("h, angular momentum: %f", sys.h); - ImGui::Text("r_apoapsis: %f", sys.r_apoapsis); - ImGui::Text("r_periapsis: %f", sys.r_periapsis); + ImGui::Text("r_apoapsis: %f km", sys.r_apoapsis); + ImGui::Text("r_periapsis: %f km", sys.r_periapsis); // FIXME: not ideal to call into orbit interface from the gooey double tof_apoapse = orbitGetTimeOfFlight(sys, sys.sat.theta, M_PI); - ImGui::Text("time to apoapsis: %.2f seconds", tof_apoapse); + ImGui::Text("time to apoapsis: %.2f s", tof_apoapse); double tof_periapse = orbitGetTimeOfFlight(sys, sys.sat.theta, 2 * M_PI); - ImGui::Text("time to periapsis: %.2f seconds", tof_periapse); + ImGui::Text("time to periapsis: %.2f s", tof_periapse); ImGui::Unindent(); }