I'm currently coding my own raytracer for school and i'm running in a bit of a problem while setting up my camera.
I know where my camera is (cX, cY, cZ) and i know where it is looking at (lX, lY, lZ)
I need to convert those data in : where my camera is (cX, cY, cZ) and its rotationX and rotationZ
I'm not that good in math if some of you could give me a little help at it? Thanks you so much!