[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-edu-devel
Subject:    Re: [kde-edu]: Need help with this code
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2005-07-11 17:30:47
Message-ID: 200507111930.47874.kevin.krammer () gmx ! at
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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 the
> fact that matrix multiplications are done ¿right to left? meants you ahve
> 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 
"x" coordinate.

Anyway.

rotate() rotates around (0, 0)

Therefore my mental shortcut is
- make the point where you want to rotate around to the new (0, 0)
- rotate

No need to remember how matrix multiplications work :)

Cheers,
Kevin

[Attachment #5 (application/pgp-signature)]

_______________________________________________
kde-edu mailing list
kde-edu@mail.kde.org
https://mail.kde.org/mailman/listinfo/kde-edu


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic