Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Rotating a Point about another Point

843799Apr 13 2004 — edited Apr 15 2004
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2004
Added on Apr 13 2004
1 comment
206 views