To get a definite 3x3 rotation matrix you need exactly three points. In your case you could choose the center of the whole molecule as a second point which, I assume, should remain in the same location. But I'm not quite sure how to sensibly choose a third point in your problem. That's the one that would determine the rotation around the z-axis. I guess your best bet is to have a look at the lookAt() method which should adequately solve your problem.
Regards, Ingo > Actually not a translation, but a rotation. I have coded a crude > molecular viewer. When the user clicks upon a particular residue I > would like the molecule to rotate placing the selected residue as > close as possible to the view camera. Therefore I would need not > only to rotate the residue center point but the entire molecule. If > it was only a single point then I could simply translate the point. > But I have to rotate the entire molecule. > > Chris =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
