ISSUE-2457: Why does svgmatrix.rotatefromvector(x,y) throw on y=0?

Why does svgmatrix.rotatefromvector(x,y) throw on y=0?

State:
RAISED
Product:
SVG 2
Raised by:
Opened on:
2014-02-17
Description:
Update the SVG2 spec to point to DOMMatrix for the definition of SVGMatrix[3]? Or update to align with the new definition of rotateFromVector there[1]?

It seems y==0 should be fine, but in SVG we let the method throw even if x!=0. See atan2[2].

Testcase:
data:text/html,<svg></svg><script>document.querySelector('svg').createSVGMatrix().rotateFromVector(1, 0); document.write('PASS');</script>

[1] http://dev.w3.org/fxtf/matrix/#widl-DOMMatrix-rotateFromVector-DOMMatrix-unrestricted-double-x-unrestricted-double-y
[2] http://en.wikipedia.org/wiki/Atan2
[3] https://svgwg.org/svg2-draft/coords.html#__svg__SVGMatrix__rotateFromVector
Related Actions Items:
No related actions
Related emails:
  1. minutes, 27 February 2014 SVG WG telcon (from cam@mcc.id.au on 2014-02-28)
  2. Agenda, 27 February 2014 SVG WG telcon (from ed@opera.com on 2014-02-26)
  3. RE: agenda, 20 February 2014 SVG WG telcon (from Thomas.O.Smailus@boeing.com on 2014-02-25)
  4. agenda, 20 February 2014 SVG WG telcon (from cam@mcc.id.au on 2014-02-20)
  5. ISSUE-2457: Why does svgmatrix.rotatefromvector(x,y) throw on y=0? (from sysbot+tracker@w3.org on 2014-02-17)

Related notes:

No additional notes.

Display change log ATOM feed


Dirk Schulze <dschulze@adobe.com>, Chair, Chris Lilley <chris@w3.org>, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 2457.html,v 1.1 2020/01/17 13:22:07 carcone Exp $