Closed fauder closed 1 year ago
I'll resolve the remaining two points of interest tonight.
Patch and project coverage have no change.
Comparison is base (
f79a9df
) 81.78% compared to head (94f6220
) 81.78%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Added the explanation from your comment above, squashed the commits together a bit and merged as 3b1fb704ca1ef2d5584f0da388a379632c199fee...2eee19276cd84ca6e8ea84207f82581d749b4d55. Thank you!
Many thanks to @pezcode for the initial work he did. I also stole that file and used it in my own opengl framework repo 🙏
I've made some modifications to the magnum.natvis file in order to augment debug visualization for:
Vector
&Quaternion
types: to display whether they are normalized (i.e, unit vectors/quaternions) or not,Deg
&Rad
) types: to display the current value nicely (with degrees symbol forDeg
&radians
suffix forRad
) as well as display the other equivalent angle value (Rad
forDeg
&Deg
forRad
respectively) in parentheses.Magnum's epsilon (from
Magnum::Math::TypeTraits
) values were utilized for unit vector queries, by creating two intrinsic .natvis functionsDot()
&IsNormalized()
, the latter utilizing said epsilons (added to and subtracted from 1.0, as we can not useabs()
in the .natvis file).Similarly,
Magnum::Math::Constants<T>::pi()
was used inDeg
/Rad
conversions.Separate
Float
&Double
variants were added for all types mentioned since they use different epsilons/conversion multipliers.'h'
(hexadecimal integer) format specifier was used forRadd
&Degd
, to display more digits in the debugger.Let me know if you want me to revise anything.