Rotate a point around a point with OpenCV?

These are the steps needed to rotate a point around another point by an angle alpha.

These are the steps needed to rotate a point around another point by an angle alpha: Translate the point by the negative of the pivot point Rotate the point using the standard equation for 2-d (or 3-d) rotation Translate back The standard equation for rotation is: x' = x*cos(alpha) - y*sin(alpha) y' = x*sin(alpha) + y*cos(alpha) Let's take the example of Point(15,5) around Point(2,2) by 45 degrees. Firstly, translate: v = (15,5) - (2,2) = (13,3) Now rotate by 45°: v = (13*cos 45° - 3*sin 45°, 13*sin 45° + 3*cos 45°) = (7.07.. , 11.31..) And finally, translate back: v = v + (2,2) = (9.07..

, 13.31..).

Thank you. Problem solved. – user1021793 Oct 31 at 13:47 Welcome to Stack Overflow.

If an answer solves your problem you should accept it. Please read about accepting answers. – SSteve Oct 31 at 16:52 +1 for a good answer, though I'd avoid using 45° as a test case as the sine and cosine are the same.

– Shane MacLaughlin Nov 18 at 7:33.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions