News for hackers. Stuff that matters.
Re:Rotations with quaternions by xscott on Tuesday June 01, 2021 @11:20AM (#27355776)
The hypot() function avoids many overflow and underflow cases:

    return hypot(hypot(q.w, q.x), hypot(q.y, q.z));
Re:Rotations with quaternions by tbabb on Tuesday June 01, 2021 @01:49PM (#27358494)
Interestingly, with clang and -O3 I get identical assembly for hypot() and the "naive" implementation.