Re: scale retrieval

New Message Reply Date view Thread view Subject view Author view

From: support++at++princess-interactive.com (Princess-Support++at++t-online.de)
Date: 03/12/2001 02:20:03


Hi Mark,

>I've tried to use pfGetOrthoMatCoord, but it would
>only get me the translation and rotation, not the
>scale.

If I understand correctly, you've got the complete transformation matrix
(with e.g. pfGetDCSMat) and also the rotation matrix.
Mathematically you should be able to get the scaling if you do the
following: Multiply the complete transformation matrix with the
inverse rotation matrix. Then you should be able to retrieve the scaling
values from the diagonal elements of the resulting matrix.

Cheers,
Sven

===================================
Princess Interactive Software GmbH
Black & Decker Str. 1-3
65510 Idstein

Fon: ++49 - 6126 - 99 02 74
Fax: ++49 - 6126 - 9 11 31

www: http://www.princess-interactive.com

Support
Fon: ++49 - 6126 - 99 02 75
Fax: ++49 - 6126 - 9 11 31

em++at++il: support++at++princess-interactive.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Mar 12 2001 - 02:21:52 PST

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