The camera can be in positions with rotation of 0°, 45°, 90°, 135°, 180°, 225°, 270°, 315°.
The known values are the coordinates (that I get from deprojection) points of (x1,y1) (x2,y2) (x3,y3) (x4,y4)
So the camera is at the point (0,0)
How can I find in which of the above angles the camera is?
So an example:
How to find that the camera is at the position with angle 0°???
if someone explain I will be grateful :)
I need a C++ algorithm, to solve this for me. :)
A function that takes four points and return the angle.
Please sign in to leave a comment.