This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29786 - " If x and y should both be zero, the angle is s..."
Summary: " If x and y should both be zero, the angle is s..."
Status: RESOLVED MOVED
Alias: None
Product: FXTF
Classification: Unclassified
Component: Geometry (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: sideshowbarker+geometry
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-22 20:16 UTC by Peter Hall
Modified: 2018-04-15 17:44 UTC (History)
2 users (show)

See Also:


Attachments

Description Peter Hall 2016-08-22 20:16:27 UTC
https://drafts.fxtf.org/geometry-1/#dom-dommatrix-rotatefromvectorself

In the definition of rotateFromVectorSelf(x, y):

[[
 If x and y should both be zero, the angle is specified as zero.
]]

This can be slightly improved to:

> If y is equal to zero and x is greater than or equal to zero, the angle is specified as zero.


The reason being that if y is zero and x is positive then there is no rotation. If x is negative then the angle is pi.
Comment 1 Dirk Schulze 2018-04-15 17:44:06 UTC
https://github.com/w3c/fxtf-drafts/issues/274