Rotating a Point about another Point
843799Apr 13 2004 — edited Apr 15 2004Hi,
Suppose Point P = (px,py,pz) and Point O = (ox,oy,oz).
If P is rotated about O by a given Euler Angle (x,y,z) how are the new coordinates of P calculated??
Easy question to ask, but a problem I have been struggling for weeks with. I can work this out in 2D, but in 3D my head wants to explode... I have been trying to use the various Transform3D methods but with no avail.
***
In my Java app, what I actually have are two TransformGroups, one a child of the other. The Child group has its own translation, so that when I rotate the parent group, the child gets rotated about the origin of the parent. When I rotate the parent Group, I want to be able to get values for the new translation of the child group so that it can be detached and its geometry to remain where it is.
***
Please, anybody,
HTS