I have 2 points origins(P1 and P2) and a third point(P3) that is at distance N from P2. Now what i want to make is to rotate P3 around P2 at N distance by M angles. Made a lot of researches and searches but didn't understand so much because of my lack of maths ;s if anyone around knows an answer then thank you.
Are we sticking to the example which is 2d, or do you need a 3d solution?
EDIT:
Oh dear, I didn't see the z-axis in the graph, yet wondered why the circle was so skewed.
You're going to have to define a rotation matrix, subtract p2 from p3, rotate it by multiplying it with the matrix, then readd p2.
And yes, the pdf is what you need.
Any specific issues we might help you with?
Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Last edited by Dr. Greg House; 10-24-2014 at 19:54.
EDIT: Solution found, there was a mistake, where rotation[0][3] / [1][3] / [2][3] was initially 0 because vector supposed to start from (0,0,0). Replaced those with last column from rotation matrix
where a,b,c = P1 and now works as intended. Also angle conversion wasn't needed.
I'll leave code here in case someone will eventually need this somewhere? Thank you for your suggestion Greg