Brad Christiansen wrote:
As stated in the comments, I need to check wether the resulting
roation is greater than 90 d in the x-axis. If it is then I want
to set the rotation to 90d.
What is the best way of doing this?
There are two cases.
1) You are using only rotation around X axis. In such case, easiest way
is to just remember rotation yourself in some kind of variable and check
if it is greater than 90. Instead of multiplying matrices, you can just
set them directly. Only remember that transform takes parameter in
radians, not degrees.
2) You are performing various rotations and compose X-axis one on top of
it. In such case, you first have to define what is a X-axis rotation.
For example, in X=left->right, Z=behind->ahead, Y=down->top, you first
rotate around Y axis 90 degrees to left. Should X axis be know original
X axis or Z-axis (which is now a line of rotation for nose up-down
direction of your object) ?
Artur
===========================================================================
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".