Re: [stella] Angular movement

Subject: Re: [stella] Angular movement
From: "Thomas Jentzsch" <tjentzsch@xxxxxx>
Date: Fri, 16 Jan 2004 09:19:14 +0100
Glenn wrote:
> The Cold Fusion docs say to convert from radians to degrees using PI/180.

Oops, my fault. 
(I remember making the same mistake in school very often too :-)


> It still looks off to me.

Remember that you need two signed bytes for each angle.

Just use the Windows calculator, multiply your result with 256 and 
convert the number into hex.

Examples:
0_degrees:
; 0.556666666667 [Vx = 20/60 * cos(0 * (PI/180)) * 1.67]
This should be converted into: 0, 143 (rounded)

180_degrees:
.byte142 ; -0.556666666615 [Vx = 20/60 * cos(180 * (PI/180)) * 1.67]
This should be converted into: 255, 114 (-1, -142)

Have?fun!
Thomas
_______________________________________________________
Thomas?Jentzsch?????????|?***?Every?bit?is?sacred?!?***
tjentzsch?at?web?dot?de?|



























______________________________________________________________________________
Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den
Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php

----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread