From 2eee19276cd84ca6e8ea84207f82581d749b4d55 Mon Sep 17 00:00:00 2001 From: fauder Date: Thu, 13 Jul 2023 20:29:11 +0300 Subject: [PATCH] debuggers: display Deg/Rad andle nicely along w/ equivalent Rad/Deg. There are two variants per angle type, so a total of four entries. I used the same exact values for the multipliers as the ones in Magnum::Math (utilizing Math::Constants::pi()). --- src/debuggers/natvis/magnum.natvis | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/debuggers/natvis/magnum.natvis b/src/debuggers/natvis/magnum.natvis index cb97704e6..3b7696b2e 100644 --- a/src/debuggers/natvis/magnum.natvis +++ b/src/debuggers/natvis/magnum.natvis @@ -7,6 +7,7 @@ 2020, 2021, 2022, 2023 Vladimír Vondruš Copyright © 2021 Jonathan Hale Copyright © 2023 Pablo Escobar + Copyright © 2023 Burak Canik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -164,4 +165,14 @@ + + + {_value,g}° ({_value * 3.1415926535897931 / 180.0,g} radians) + {_value,g}° ({_value * 3.1415926535897931 / 180.0,g} radians) + + + + {_value,g} radians ({180.0 * _value / 3.1415926535897931,g}°) + {_value,g} radians ({180.0 * _value / 3.1415926535897931,g}°) +