Re: Center of Rotation

New Message Reply Date view Thread view Subject view Author view

Ran Yakir (rany++at++bvr.co.il)
Tue, 27 Aug 1996 07:56:05 +0000


> I am trying to set the center of rotation on a DCS. Can anyone help
> me?
>

Let's assume your center of rotation is in :
pfVec3 center;
and your DCS transformation is in
pfMatrix tmat;

...
pfMakeIdentMat (mat);
pfPreTransMat (mat, center[0], center[1], center[2], mat);
pfPreMultMat (mat, tmat);
pfPreTransMat (mat, -center[0], -center[1], -center[2], mat);
pfDCSMat (dcs, mat);

Ran

-- 
 __                                  | Ran Yakir
 /_)  _  __   \  / _   / o __        | BVR Technologies Ltd.
/ )_ (_(_) )   \/ (_(_/<_(_)(        | 
              _/                     |   
-------------------------------------+--------------------------------
Phone :                              | E-mail : rany++at++bvr.co.il
  Work : 972-3-5715671               |
  Res. : 972-9-989974                |
Fax    : 972-3-5715668               |

======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:25 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.