Skip to content

Commit

Permalink
[gow] (2) Clarify arc() for arcs greater than 2pi.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1756 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 13, 2008
1 parent fe3129f commit 75d8c60
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 23 deletions.
30 changes: 18 additions & 12 deletions index
Expand Up @@ -25,7 +25,7 @@

<h1 id=html-5>HTML 5</h1>

<h2 class="no-num no-toc" id=draft>Draft Recommendation &mdash; 12 June
<h2 class="no-num no-toc" id=draft>Draft Recommendation &mdash; 13 June
2008</h2>

<p>You can take part in this work. <a
Expand Down Expand Up @@ -19476,17 +19476,23 @@ notes on what would need to be defined for dashed lines:
The arc and its start and end points are defined as follows:

<p>Consider a circle that has its origin at (<var title="">x</var>, <var
title="">y</var>) and that has radius <var title="">radius</var>. The
points at <var title="">startAngle</var> and <var title="">endAngle</var>
along the circle's circumference, measured in radians clockwise from the
positive x-axis, are the start and end points respectively. The arc is the
path along the circumference of this circle from the start point to the
end point, going anti-clockwise if the <var title="">anticlockwise</var>
argument is true, and clockwise otherwise. Since the points are on the
circle, as opposed to being simply angles from zero, the arc can never
cover an angle greater than 2&pi; radians. If the two angles are equal, or
if the radius is zero, then the arc is defined as being of zero length in
both directions.
title="">y</var>) and that has radius <var title="">radius</var>.

<p>If the absolute magnitude of the difference between the <var
title="">startAngle</var> and <var title="">endAngle</var> angles is equal
to or greater than 2&pi;, then the arc is the whole circumference of this
circle.

<p>Otherwise, the points at <var title="">startAngle</var> and <var
title="">endAngle</var> along this circle's circumference, measured in
radians clockwise from the positive x-axis, are the start and end points
respectively. The arc is the path along the circumference of this circle
from the start point to the end point, going anti-clockwise if the <var
title="">anticlockwise</var> argument is true, and clockwise otherwise.
Since the points are on the circle, as opposed to being simply angles from
zero, the arc can never cover an angle greater than 2&pi; radians. If the
two angles are equal, or if the radius is zero, then the arc is defined as
being of zero length in both directions.

<p>Negative values for <var title="">radius</var> must cause the
implementation to raise an <code>INDEX_SIZE_ERR</code> exception.
Expand Down
29 changes: 18 additions & 11 deletions source
Expand Up @@ -17109,17 +17109,24 @@ notes on what would need to be defined for dashed lines:

<p>Consider a circle that has its origin at (<var title="">x</var>,
<var title="">y</var>) and that has radius <var
title="">radius</var>. The points at <var title="">startAngle</var>
and <var title="">endAngle</var> along the circle's circumference,
measured in radians clockwise from the positive x-axis, are the
start and end points respectively. The arc is the path along the
circumference of this circle from the start point to the end point,
going anti-clockwise if the <var title="">anticlockwise</var>
argument is true, and clockwise otherwise. Since the points are on
the circle, as opposed to being simply angles from zero, the arc can
never cover an angle greater than 2&pi; radians. If the two angles
are equal, or if the radius is zero, then the arc is defined as
being of zero length in both directions.</p>
title="">radius</var>.</p>

<p>If the absolute magnitude of the difference between the <var
title="">startAngle</var> and <var title="">endAngle</var> angles is
equal to or greater than 2&pi;, then the arc is the whole
circumference of this circle.</p>

<p>Otherwise, the points at <var title="">startAngle</var> and <var
title="">endAngle</var> along this circle's circumference, measured
in radians clockwise from the positive x-axis, are the start and end
points respectively. The arc is the path along the circumference of
this circle from the start point to the end point, going
anti-clockwise if the <var title="">anticlockwise</var> argument is
true, and clockwise otherwise. Since the points are on the circle,
as opposed to being simply angles from zero, the arc can never cover
an angle greater than 2&pi; radians. If the two angles are equal, or
if the radius is zero, then the arc is defined as being of zero
length in both directions.</p>

<p>Negative values for <var title="">radius</var> must cause the
implementation to raise an <code>INDEX_SIZE_ERR</code>
Expand Down

0 comments on commit 75d8c60

Please sign in to comment.