Re: [Algorithms] Vector to pitch and yaw
Brought to you by:
vexxed72
From: Thatcher U. <tu...@tu...> - 2002-04-27 14:57:10
|
Finally, an answer :) Also, this could save you a few cycles: Pitch = asin(Z); On Apr 26, 2002 at 11:26 -0400, Daniel Vogel wrote: > You could try the following to convert a vector to yaw/pitch. > > Yaw = atan2(Y,X); > Pitch = atan2(Z,sqrt(X*X+Y*Y)); > > -- Daniel, Epic Games Inc. > > > -----Original Message----- > > From: gda...@li... > > [mailto:gda...@li...]On Behalf Of > > Christian Lykawka > > Sent: Friday, April 26, 2002 9:21 PM > > To: gda...@li... > > Subject: [Algorithms] Vector to pitch and yaw > > > > > > Hello, > > > > Does anyone have a function that converts a vector > > to pitch and yaw angles, and vice-versa? > > > > Thanks, > > Christian > > > > > > _______________________________________________ > > GDAlgorithms-list mailing list > > GDA...@li... > > https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list > > Archives: > > http://sourceforge.net/mailarchive/forum.php?forum_id=6188 > > > > _______________________________________________ > GDAlgorithms-list mailing list > GDA...@li... > https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=6188 -- Thatcher Ulrich <tu...@tu...> http://tulrich.com |