Browse Source

update gooey text alignment

main
cinnaboot 4 years ago
parent
commit
80322773a9
  1. 10
      src/gooey.cpp

10
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();
}

Loading…
Cancel
Save