rotateFromVector method
[This documentation is preliminary and is subject to change.]
Post-multiplies the matrix by a specified rotation transformation and returns the resulting matrix.
![]() ![]() |
Syntax
ISVGMatrix retVal = object.rotateFromVector(x, y);
Standards information
Parameters
x [in]
Type: floatThe x-coordinate of a vector (x,y) that determines the rotation angle. This coordinate cannot be zero.
y [in]
Type: floatThe y-coordinate of a vector (x,y) that determines the rotation angle. This coordinate cannot be zero.
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
Build date: 1/26/2012
.png)
.png)