[Bug 9740] arcTo() -> should be "Adds a point to the current [subpath]..."

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9740


Chris Apers <chrilith@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chrilith@hotmail.com




--- Comment #1 from Chris Apers <chrilith@hotmail.com>  2010-05-15 10:24:49 ---
Also, the explanation doesn't seem correct. In fact the two points (in current
implementations) seem more like control points. And effective points are the
ones at intersections between tangents an the circle.

--
Adds two control points defining, using last point of previous subpath, 2
tangents to the circle defined by arguments. Resulting subpath is an arc
starting at intersection point with the first tangent and ending at
intersection point with the second tangent.
--

Illustrated by the following example where the black disc is the previous
subpath and gray ones control points.


context.fillStyle = "gray";

context.beginPath();
context.translate(125, 25);
context.moveTo(20,18);
context.arcTo(40, 20, 10, 100, 100);
context.lineTo(100, 100);
context.stroke();

context.beginPath();
context.arc(40, 20, 4, 0, 2 * Math.PI, 1);
context.arc(10, 100, 4, 0, 2 * Math.PI, 1);
context.fill();
context.beginPath();
context.fillStyle = "black";
context.arc(20, 18, 4, 0, 2 * Math.PI, 1);
context.fill();

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 15 May 2010 10:24:50 UTC