W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2007

[whatwg] Canvas arcTo

From: Kristof Zelechovski <giecrilj@stegny.2a.pl>
Date: Tue, 3 Jul 2007 01:43:58 +0200
Message-ID: <000f01c7bd02$dc6836b0$1a01080a@POCZTOWIEC>
The questioned wording is correct: a straight line has infinite radius and
thus does not match the requirement if the radius is finite.

-----Original Message-----
From: whatwg-bounces@lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Philip Taylor
Sent: Monday, July 02, 2007 1:42 PM
Subject: [whatwg] Canvas arcTo

"If the point (x2, y2) is on the line defined by the points (x0, y0)
and (x1, y1) then the method must do nothing, as no arc would satisfy
the above constraints." - why would no arc satisfy the constraints? If
P0, P1, P2 are collinear and non-coincident, then (I think) any of the
(infinitely many) circles which have the given radius and touch
tangential to the line P0->P2 will satisfy the constraints (i.e. being
tangential to P0->P1 at some point and to P1->P2 at some point).


"Negative or zero values for radius must cause the implementation to
raise an INDEX_SIZE_ERR exception." - why not allow zero? You just get
an arc at P1 with zero length, with the start and end tangent points
both at P1, so the effect would be a straight line from P0 to P1,
without needing to handle it as a special case. Safari works like
Received on Monday, 2 July 2007 16:43:58 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:56 UTC