From kde-edu-devel Mon Jul 11 17:30:47 2005 From: Kevin Krammer Date: Mon, 11 Jul 2005 17:30:47 +0000 To: kde-edu-devel Subject: Re: [kde-edu]: Need help with this code Message-Id: <200507111930.47874.kevin.krammer () gmx ! at> X-MARC-Message: https://marc.info/?l=kde-edu-devel&m=112110309305226 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============2076020542==" --===============2076020542== Content-Type: multipart/signed; boundary="nextPart1800038.6DCefQPs6I"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1800038.6DCefQPs6I Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 11 July 2005 19:17, Albert Astals Cid wrote: > Well, he really needs to rotate before translating, but that means puting > the rotate line after the translate one due to mathematical things, that > is, rotations and translations are done with matrix multiplications and t= he > fact that matrix multiplications are done =BFright to left? meants you ah= ve > to put them in the inverse order you want them to be applied. As he rotates by 90 degrees it actually doesn't matter that much :) Carsten had it mostly right, he rotated and then used the height value for = the=20 "x" coordinate. Anyway. rotate() rotates around (0, 0) Therefore my mental shortcut is =2D make the point where you want to rotate around to the new (0, 0) =2D rotate No need to remember how matrix multiplications work :) Cheers, Kevin --nextPart1800038.6DCefQPs6I Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBC0qzHnKMhG6pzZJIRAgpsAJ4uQDgjtaEO+UTwHG2T66Bf3uYnvgCfURqV qN5L6cbMZzskGQZP8imslCU= =f/51 -----END PGP SIGNATURE----- --nextPart1800038.6DCefQPs6I-- --===============2076020542== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline _______________________________________________ kde-edu mailing list kde-edu@mail.kde.org https://mail.kde.org/mailman/listinfo/kde-edu --===============2076020542==--