[webkit-reviews] review requested: [Bug 54658] [gtk] Failing collinear arcTo canvas tests : [Attachment 82798] Add collinearity check

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 17 07:31:38 PST 2011


Zan Dobersek <zandobersek at gmail.com> has asked	for review:
Bug 54658: [gtk] Failing collinear arcTo canvas tests
https://bugs.webkit.org/show_bug.cgi?id=54658

Attachment 82798: Add collinearity check
https://bugs.webkit.org/attachment.cgi?id=82798&action=review

------- Additional Comments from Zan Dobersek <zandobersek at gmail.com>
This patch adds a collinearity check that checks if the three points used to
draw an arc through arcTo method are positioned in a line.

Check is performed by calculating the area of the triangle that the three
points construct - if the area equals zero, the lines are collinear.


More information about the webkit-reviews mailing list