Gui: Eliminate double->float truncations

Our GUI code uses a mix of floats and doubles to represent floating
point numbers, and in a few places interchanges them in a way that
causes an invisible loss of precision. Change the double precision
"default" values to float defaults, and use the appropriate value for
pi.
This commit is contained in:
Chris Hennes
2025-05-12 23:45:20 -05:00
committed by Kacper Donat
parent 305ef46e2c
commit c9c193b5d6
3 changed files with 13 additions and 13 deletions

View File

@@ -3606,7 +3606,7 @@ void View3DInventorViewer::alignToSelection()
angle *= -1;
}
using std::numbers::pi;
constexpr auto pi = std::numbers::pi_v<float>;
// Make angle positive
if (angle < 0) {