Re:Sin and Cos: The Programmer's Pals
by paulddraper on Wednesday March 07, 2018 @06:50PM
(#16541069)
Just as atan2() returns 1 angle (XY), atan3() would return 2 angles (XY, XZ).
I agree dot product is often better, for other reasons.
Re:Sin and Cos: The Programmer's Pals
by jjaredsimpson on Wednesday March 07, 2018 @07:59PM
(#16541383)
I don't follow what this hypothetical atan3 implements?
atan2 requires this even in 2d, we just assume the natural basis and assume the other vector is x hat.
Dot product avoids all this in any dimension.