I noticed the tests were empty so I went ahead and added some simple ones.
For what it's worth, normalizing a quaternion using q *= q.norm().invsqrt() doesn't actually result in a normalized quaternion with magnitude 1.0. This is to be expected, though, due to the ~5% tolerance of invsqrt().
I noticed the tests were empty so I went ahead and added some simple ones.
For what it's worth, normalizing a quaternion using
q *= q.norm().invsqrt()
doesn't actually result in a normalized quaternion with magnitude 1.0. This is to be expected, though, due to the ~5% tolerance ofinvsqrt()
.