News for hackers. Stuff that matters.
Re:Rotations with quaternions by imadr on Tuesday June 01, 2021 @11:06AM (#27355482)
I'm absolutely not a pro in C, so if it is undefined behaviour I'd be glad to know and fix it, I just found out about the notation and it looks handy
Re:Rotations with quaternions by dnautics on Tuesday June 01, 2021 @11:38AM (#27356151)
checked myself. My cursory, poor search suggests it's UB in C++, but not in C?
Re:Rotations with quaternions by steerablesafe on Tuesday June 01, 2021 @12:38PM (#27357261)
It is definitely UB in C++ and probably implementation defined in C (and this use is fine all implementations, AFAIK). Some C++ implementations allow this as a conforming language extension.
Re:Rotations with quaternions by dnautics on Tuesday June 01, 2021 @12:52PM (#27357548)
thanks for clarifying!