Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

rotateFromVector method

Post-multiplies the matrix by a specified rotation transformation and returns the resulting matrix.

Scalable Vector Graphics: Coordinate Systems, Transformations and Units, Section 7.14.3Internet Explorer 9

Syntax


ISVGMatrix retVal = object.rotateFromVector(x, y);

Parameters

x [in]

Type: float

The x-coordinate of a vector (x,y) that determines the rotation angle. This coordinate cannot be zero.

y [in]

Type: float

The y-coordinate of a vector (x,y) that determines the rotation angle. This coordinate cannot be zero.

Standards information

Remarks

The rotation angle is determined by taking (+/-)arctan(y/x). The direction of the vector (x,y) determines whether the positive or negative angle value is used.

Post-multiplies means that other matrix operations are performed before this operation.

See also

SVGMatrix

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.