I also want to 2nd the mention of a DOMPolygon interface and would value this a lot more than DOMCircle as it is a nice continuation of the straight line geometry of rects and quads. The web almost has the building blocks for rich geometry in the form of spatial canvases, hand drawing without a <canvas> or systems that require collision detection. With a DOMPolygon interface and a few basic geometry utilities it would reduce the need to continually reimplement these basic affordances especially when you need them for rects, quads, and other geometry.
I've also been wondering about a DOMPath interface, which could equally (and perhaps better) be served by an isClosed property on a DOMPolygon interface. For the sake of completion, an isSimple property would round out the most basic geometry attributes.
Originally posted by @OrionReed in #602 (comment)
I also want to 2nd the mention of a
DOMPolygoninterface and would value this a lot more thanDOMCircleas it is a nice continuation of the straight line geometry of rects and quads. The web almost has the building blocks for rich geometry in the form of spatial canvases, hand drawing without a <canvas> or systems that require collision detection. With aDOMPolygoninterface and a few basic geometry utilities it would reduce the need to continually reimplement these basic affordances especially when you need them for rects, quads, and other geometry.I've also been wondering about a
DOMPathinterface, which could equally (and perhaps better) be served by anisClosedproperty on aDOMPolygoninterface. For the sake of completion, anisSimpleproperty would round out the most basic geometry attributes.Originally posted by @OrionReed in #602 (comment)