This is a multi-part message in MIME format.
------=_NextPart_000_0067_01C56C3E.77E90820
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
does anybody know how to calculate the exact rotation of the actual =
pattern. I had the following code, which gave results, that are counting =
up and down and does not seem to be right.
Greetings,
Denise
//caculate rotationdouble rot[3][3];for (int i=3D0; i<3; i++){ for =
(int j=3D0; j<3; j++){ rot[i][j] =3D object[4].trans[i][j]; =
}}double t, z, u;arGetAngle( rot, &t, &z, &u =
);t=3D((t+PI)/(2*PI))*360;z=3D((z+PI)/(2*PI))*360;u=3D((u+PI)/(2*PI))*360=
;printf("\nRotation around X:%5.2f",t);
------=_NextPart_000_0067_01C56C3E.77E90820
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV> </DIV>
<DIV>does anybody know how to calculate the exact rotation of the actual =
pattern. I had the following code, which gave results, that are counting =
up and=20
down and does not seem to be right.</DIV>
<DIV> </DIV>
<DIV>Greetings,</DIV>
<DIV> </DIV>
<DIV>Denise</DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2></FONT></DIV><FONT face=3DArial =
size=3D2></FONT></DIV><PRE><FONT size=3D3>//caculate =
rotation</FONT></PRE><PRE><FONT size=3D3>double =
rot[3][3];</FONT></PRE><PRE><FONT size=3D3>for (int i=3D0; i<3; =
i++){</FONT></PRE><PRE><FONT size=3D3> for (int j=3D0; =
j<3; j++){</FONT></PRE><PRE><FONT size=3D3> =
rot[i][j] =3D =
object[4].trans[i][j];</FONT></PRE><PRE><FONT =
size=3D3> }</FONT></PRE><PRE><FONT =
size=3D3>}</FONT></PRE><PRE><FONT size=3D3>double t, z, =
u;</FONT></PRE><PRE><FONT size=3D3>arGetAngle( rot, &t, &z, =
&u );</FONT></PRE><PRE><FONT =
size=3D3>t=3D((t+PI)/(2*PI))*360;</FONT></PRE><PRE><FONT =
size=3D3>z=3D((z+PI)/(2*PI))*360;</FONT></PRE><PRE><FONT =
size=3D3>u=3D((u+PI)/(2*PI))*360;</FONT></PRE><PRE><FONT =
size=3D3>printf("\nRotation around =
X:%5.2f",t);</FONT></PRE></FONT></DIV></BODY></HTML>
------=_NextPart_000_0067_01C56C3E.77E90820--
|