OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

cgmo-webcgm message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [cgmo-webcgm] ISSUE: rotation/scale center points incorrect


All,
 
From some basic knowledge I have (or had), scaling may be obtained by adding some coefficient  to the cos(a) and sin(a) stuff.
 
cx and cy has written in ht e matrix will result in translation of cx on the x axis and of cy on the y axis.
 
Franck.
-----Message d'origine-----
De : Weidenbrueck, Dieter [mailto:dweidenbrueck@ptc.com]
Envoyé : jeudi 13 décembre 2007 14:37
À : Bezaire, Benoit; cgmo-webcgm@lists.oasis-open.org
Objet : RE: [cgmo-webcgm] ISSUE: rotation/scale center points incorrect

Benoit,
 
you are right. Scaling always happens around the origin of the coordinate system using the 2 x 2 matrix in the upperleft of the shown 3 x 3 matrix.
 
To scale (or rotate, reflect etc) around a specific center, you have to concatenate matrices:
 
translate (-cx, -cy)
scale (sx, sy)         (or rotate(alpha) )
translate (cx, cy)
 
Dieter


From: Bezaire, Benoit [mailto:bbezaire@ptc.com]
Sent: Donnerstag, 13. Dezember 2007 08:24
To: cgmo-webcgm@lists.oasis-open.org
Subject: [cgmo-webcgm] ISSUE: rotation/scale center points incorrect

Hi,
 
The latest proposal for the transform interface has (I believe) incorrect center points calculations.
 
The current rotation matrix:
 
[ cos(a) -sin(a) cx
  sin(a)  cos(a) cy
   0       0      1 ]
 
where a is the angle and (cx,cy) is the center point. This does not rotate a point around (cx,cy).
 
Same goes for scale matrix.
 
Benoit.
This mail has originated outside your organization, either from an external partner or the Global Internet.
Keep this in mind if you answer this message.

This e-mail is intended only for the above addressee. It may contain privileged information.
If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. 
If you have received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of security reasons.
This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]