[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [cgmo-webcgm] ISSUE: rotation/scale center points incorrect
-----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 incorrectBenoit,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 incorrectHi,The latest proposal for the transform interface has (I believe) incorrect center points calculations.The current rotation matrix:[ cos(a) -sin(a) cxsin(a) cos(a) cy0 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]