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

List:       koffice-devel
Subject:    Qt3.1 beta 1 breaks QWMatrix
From:       Lenny <kudling () kde ! org>
Date:       2002-10-20 18:47:56
[Download RAW message or body]

Hi,

I see no obvious way anymore in Qt 3.1 to translate something, rotate it
and translate it back.

The code to blame in qwmatrix.h:

QWMatrix &QWMatrix::translate( double dx, double dy )
{
     _dx += dx*_m11;
     _dy += dy*_m22;
     return *this;
}

You cannot translate back, because the matrix diagonal elements are != 1after 
a non trivial rotation.

Bye
Lenny
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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