[vlc-devel] [PATCH 1/2] viewpoint: remove vlc_viewpoint_reverse
Rémi Denis-Courmont
remi at remlab.net
Sat Jan 9 15:00:16 UTC 2021
Le lauantaina 9. tammikuuta 2021, 16.10.46 EET Alexandre Janniaux a écrit :
> The function was doing the wrong operation. The underlying rotation,
> which is R = Rz(roll) Rx(pitch) Ry(yaw), was transformed into the
> product Rz(-roll) Rx(-pitch) Ry(-yaw), whereas the correct transformation
> would have been Ry(-yaw) Rx(-pitch) Rz(-roll), which leads to a reversed
> rotation order. In simpler term, this was a good idea to help understand
> what was happening but it was wrongly executed.
>
> Removing the function and using the correct input for writing the matrix
> simplifies the code and makes the future quaternion code more logical.
> The correct version of this process can be done later if still needed.
I didn't check the maths, but maybe using a new macro for degrees to radians
conversion would be more legible.
--
Реми Дёни-Курмон
http://www.remlab.net/
More information about the vlc-devel
mailing list