rock-core / base-types

C/C++ and Ruby definition of the base types in Rock
6 stars 40 forks source link

fix: return vector3d(nan, nan, nan) when one of coeffs is nan #161

Closed jhonasiv closed 1 year ago

jhonasiv commented 1 year ago

Before, x would be set to 0 even if every coeff was nan. This returns vector3d(nan, nan, nan) whenever i is nan (i.e. an Invalid quaternion).