Browse Source
While operating on exactly normalized float quaternions it can aparently still happen that one of the elements gets just slightly above 1 or below -1 and hence out of the domain of the acosf and asinf functions resulting in NaN. The constrain function uses stricly smaller/bigger comparisons and catches all tested cases.sbg
1 changed files with 3 additions and 0 deletions
Loading…
Reference in new issue