How to rotate a point in 3d?

834 Views Asked by At

I am trying to rotate a point in 3d space. I have a point p and a xrotation rx, yrotation yr and a zrotation zr.

How can I use this arbitrary rotation function

enter image description here

To get the rotated point p' which has the new x,y,z values.

Can anyone explain?

Thanks