Re: [Algorithms] Left-handed vs. right-handed
Brought to you by:
vexxed72
|
From: Jon W. <jw...@gm...> - 2009-05-06 18:09:21
|
Ruben Penalva wrote: > In my honest opinion, this is the same with "column major vs row > major". Whatever you choose just stick with it. Make a clear > documentation about your choose and how are you going to convert the > data to your system. Then, forget about it and never ever change the > decision you made. :) Hey, how about "row vector on left" vs "column vector on right" ? Or "WXYZ" vs "XYZW" quaternions? However, it turns out that if you're mainly D3D, you end up with left-handed, row major, row vectors on the left, and if you're mainly OpenGL, you end up with right-handed, column-major, column vectors on the right, and because you flip both the storage and the multiplication convention, the in-memory representation turns out to be the same, which confuses people even more, because they don't even realize that they're mixing and matching code from different conventions, and it "mostly" works anyway. Sincerely, jw |