I have a problem rotating one point around another. I`m not good at trigonometry, so please, help me and correct my solution.
To rotate one point around another I move points to the origin of the coordinate system so the point around which I want to rotate will be in the origin of the coordinate system (0,0,0), rotate point around Z, Y and Z axis and then shift it back.
Example: I need to rotate point x(1,1,1) around point y(3,2,1), so I subtract coordinates of point y from point x - x(1 - 3,1 - 2,1 - 1), rotate point x around x, y and z axis and then return x`` to the correct location by adding y coordinates. Will it work?
Sorry for bad English.