On Wed, 03 Nov 2004 16:02:19 -0600
 "Jon S Berndt" <[EMAIL PROTECTED]> wrote:

On Wed, 3 Nov 2004 16:47:37 -0500
 David Megginson <[EMAIL PROTECTED]> wrote:

After having scribbled for a LITTLE WHILE on the back of an envelope
;-) I am thinking that what you want is this:

-atan2(-phi,theta)

Maybe I am missing what you are trying to do, but I just tried this in Excel:


-atan2(theta,phi)

which gives this:

theta   phi             angle (from forward, positive clockwise)
45      0               0
45      -45             45
0       -45             90
-45     -45             135
-45     0               -180
-45     45              -135
0       45              -90
45      45              -45
0       0               BAD!

10      0               0
10      80              -82.87498365
80      10              -7.125016349


_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to