rotate plane according to pitch,yaw and roll

370 Views Asked by At

Lets say, i have ground-plane equation = $ax + by + cz + d$ . Then, i rotate camera and i know new yaw ( $\theta$ ), pitch ( $\alpha$) and roll( $\gamma$) angle of camera. How can i calculate new ground equation using previous equation and these angles?

I created rotation matrix $R_x$, $R_y$, and $R_z$ . Then multipy plane equation with these rotation matrices as follows:

Plane equation : [[a,b,c]] -> 1x3 matrix

Final rotation matrix : $Rz$ * $Ry$ * $Rx$ -> 3x3 matrix

New plane : Plane equation * Final rotation matrix -> 1x3 matrix.

However, results is very noisy, and i think, i made some mistake on using matrices multiplication? Is my way correct or not? If not, what is the correct way to get new plane equation?