W3C home > Mailing lists > Public > www-svg@w3.org > April 2000

SVGMatrix::rotateFromVector

From: Steve Dickson <sdickson@savagesoftware.com>
Date: Thu, 13 Apr 2000 12:14:52 -0700
Message-id: <fc.0085846d00003ebc0085846d00003ebc.3ec7@savagesoftware.com>
To: www-svg@w3.org
I'd like some clarification of the following snippet taken from
WD-SVG-20000303, Section 7.13, discussing the SVGMatrix interface:

"rotateFromVector 
Post-multiplies a rotation transformation on the current matrix and
returns the resulting matrix. The rotation angle is determined by taking
(+/-) atan(y/x). The direction of the vector (x,y) determines whether the
positive or negative angle value is used. "

The relationship between the vector direction and whether to use the +/-
derived rotation angle is not entirely clear.  Under what conditions is
the negative angle value to be used?

S.
	
Received on Thursday, 13 April 2000 15:14:43 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:18 GMT