Browse Source

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<T>::pi()).
pull/168/head
fauder 3 years ago committed by Vladimír Vondruš
parent
commit
2eee19276c
  1. 11
      src/debuggers/natvis/magnum.natvis

11
src/debuggers/natvis/magnum.natvis

@ -7,6 +7,7 @@
2020, 2021, 2022, 2023 Vladimír Vondruš <mosra@centrum.cz>
Copyright © 2021 Jonathan Hale <squareys@googlemail.com>
Copyright © 2023 Pablo Escobar <mail@rvrs.in>
Copyright © 2023 Burak Canik <canik.burak@gmail.com>
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 @@
</ArrayItems>
</Expand>
</Type>
<!-- Math::Deg -->
<Type Name="Magnum::Math::Deg&lt;*&gt;">
<DisplayString IncludeView="simple">{_value,g}° ({_value * 3.1415926535897931 / 180.0,g} radians)</DisplayString>
<DisplayString ExcludeView="simple">{_value,g}° ({_value * 3.1415926535897931 / 180.0,g} radians)</DisplayString>
</Type>
<!-- Math::Rad -->
<Type Name="Magnum::Math::Rad&lt;*&gt;">
<DisplayString IncludeView="simple">{_value,g} radians ({180.0 * _value / 3.1415926535897931,g}°)</DisplayString>
<DisplayString ExcludeView="simple">{_value,g} radians ({180.0 * _value / 3.1415926535897931,g}°)</DisplayString>
</Type>
</AutoVisualizer>

Loading…
Cancel
Save