2 ms·
This is just https://en.wikipedia.org/wiki/Rodrigues%27_rotation_formula https://en.wikipedia.org/wiki/Rodrigues%27_rotation_formula
by xeonmc 7mo ago
This is just https://en.wikipedia.org/wiki/Rodrigues%27_rotation_formula https://en.wikipedia.org/wiki/Rodrigues%27_rotation_formula
- djmips 7mo agoThis is avoiding an common but unnecesary round trip. When your inputs are vectors, angles are an unnecessary intermediate representation. You can substitute the geometric meaning of dot and cross product directly into the Rodrigues matrix and get by with less operations overall. It's more elegant, uses less instructions.
- xeonmc 7mo agoThat’s exactly what I mean, there are no inverse trig that needs to be involved anywhere, see the matrix section in the article. It is trivial to recognize that vector inputs are pretty much the same space the k coefficients and mentally treat cos and sin as a shorthand symbol in terms of vector products. And in any case inverse trig functions are just components of logarithms of quaternions, and trig is components of exponentiating half-axis-angle into quaternions.
- skrebbel 7mo agoThe point isn't that formula, it's that using angles for parameters or intermediary values is often wasteful.
- ajkjk 7mo agoIt is not.