[Qt-interest] QPainter scale and rotate issue

Yawar Amin yawar.amin at gmail.com
Mon Sep 6 06:06:09 CEST 2010


Hi,

On 2010-09-02, at 04:17, Sean Harmer wrote:

>> [...]
> 
> If you are using a 3-4-5 triangle as the basic shape then it is your 
> trigonometry that is wrong. The internal angles are:
> 
> theta = asin( 4 / 5 ) = 53.13 degrees
> phi = asin( 3 / 5 ) = 36.87 degrees
> 
> and the right-angle of course. So using rotations of 120 degrees both time 
> will just not work. Try it using these angles.

D'oh! You're right of course. I was mixing up a 3-4-5 triangle and a 1-√3-2 triangle. The former has easier sides but the latter has easier angles.

So anyway, the triangle is perfect now.

Thanks!

Yawar

-------------- next part --------------
A non-text attachment was scrubbed...
Name: prefect_pythag_triangle.png
Type: image/png
Size: 31830 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100906/1a475e8e/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100906/1a475e8e/attachment.bin 


More information about the Qt-interest-old mailing list