This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://dev.w3.org/fxtf/geometry/#DOMQuad We should add an example of 4 dompoints that define a quad and the bounding rect. An irregular rect would be preferred.
[[ [Constructor(DOMPointInit p1, DOMPointInit p2, DOMPointInit p3, DOMPointInit p4 ]] The example should have one graphics as well.
Added an example.
This is how the example reads in plain text: [[ This is an example of an irregular quadrilateral: new DOMQuad({x: 40, y: 25}, {x: 180, y: 8}, {x: 210, y: 150}, {x: 10, y: 180}); Graphical representation of a DOMQuad with 4 points and associated bounding rectangle An irregular quadrilateral represented by a DOMQuad. The four red colored circles represent the DOMPoint attributes p1 to p4. The dashed rectangle represents the associated bounding rectangle bounds of the DOMQuad. ]] I'm not sure this is particularly helpful for someone who can't see the image. How would you explain the example without using an image?
(In reply to Simon Pieters from comment #3) > This is how the example reads in plain text: > > [[ > This is an example of an irregular quadrilateral: > > new DOMQuad({x: 40, y: 25}, {x: 180, y: 8}, {x: 210, y: 150}, {x: 10, y: > 180}); > > Graphical representation of a DOMQuad with 4 points and associated bounding > rectangle > > An irregular quadrilateral represented by a DOMQuad. The four red colored > circles represent the DOMPoint attributes p1 to p4. The dashed rectangle > represents the associated bounding rectangle bounds of the DOMQuad. > ]] > > I'm not sure this is particularly helpful for someone who can't see the > image. How would you explain the example without using an image? Any suggestion how you think we should change it?
How about replacing > Graphical representation of a DOMQuad with 4 points and associated bounding > rectangle with: A completely asymmetric quadrilateral with none of the sides being vertical or horizontal, and its four corners are marked with red circles. Around this shape is a dashed rectangle with vertical and horizontal sides that tangents the quadrilateral.
s/tangents/tangent/
Ok, used your phrases with small changes: "" An irregular quadrilateral with none of the sides being vertical or horizontal. Its four corners are marked with red circles. Around this quadrilateral is a dashed rectangle that represents the associated bounding rectangle. All sides of this rectangle are vertical or horizontal and tangent the quadrilateral. ""
LGTM
...actually I would remove " that represents the associated bounding rectangle" since the caption says and the image doesn't.
(In reply to Simon Pieters from comment #9) > ...actually I would remove " that represents the associated bounding > rectangle" since the caption says and the image doesn't. Done.