[Qt-interest] angle calculation in qt_find_ellipse_coords

Olaf Krzikalla Olaf.Krzikalla at tu-dresden.de
Wed May 12 15:12:34 CEST 2010


Hi @qt,

the calculation of the start and end point of an ellipse in 
qt_find_ellipse_coords looks somewhat weird to me. 
First a point p is computed by looking only at the angle (that is, 
ignoring the rectangle). Then the actual point is computed by 
translating and scaling p to the rectangle. However, during the scaling 
the angle will change, if the rectangle is not a square and the angle is 
not one of  0,90,180,270.
This observation is witnessed by my own experiments and some 
(unanswered) questions on the web regarding the same issue. If it is the 
intended behavior, that the angle gets stretched, then it should be 
documented somewhere.

Best regards
Olaf Krzikalla



More information about the Qt-interest-old mailing list