Ran Yakir (rany++at++sgi.com)
Tue, 3 Sep 1996 21:46:54 +0000
roll can not be reconstructed from a single vector. A unit vector is
represented with h,p and the length (which is 1). If you need to reconstruct
the roll of an aircraft or a vehicle, and you have the line-of-sight vector,
you'll need the up vector too.
Anyway, to get heading and pitch from (x,y,z) you should do the following :
h = pfArcTan2(x,y);
p = pfArcSin(z);
Hope this helps
Ran
--
__ | Ran Yakir
/_) _ __ \ / _ / o __ | RT-SET Ltd.
/ )_ (_(_) ) \/ (_(_/<_(_)( |
_/ |
-------------------------------------+--------------------------------
Phone : | E-mail : rany++at++rtset.co.il
Work : 972-9-552236 | rany++at++netvision.net.il
Res. : 972-9-989974 |
Fax : 972-9-552239 |
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:30 PDT