You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can see in my use-case, this is due to numeric imprecision which causes the i value of the ang_err quaternion to be marginally outside the range -1.0 to 1.0; which in turn causes i.asin() to return NaN.
A simple fix is to clamp the value passed to i.asin() to force it to the range -1.0 to 1.0
The text was updated successfully, but these errors were encountered:
As far as I can see in my use-case, this is due to numeric imprecision which causes the
i
value of theang_err
quaternion to be marginally outside the range -1.0 to 1.0; which in turn causesi.asin()
to returnNaN
.A simple fix is to clamp the value passed to
i.asin()
to force it to the range -1.0 to 1.0The text was updated successfully, but these errors were encountered: