rotate
Returns the result of rotating this matrix by a given vector.
Declaration
WebKitCSSMatrix rotate(
optional unrestricted double rotX,
optional unrestricted double rotY,
optional unrestricted double rotZ
);Parameters
- rotX:
The x component in the vector, in degrees.
- rotY:
The y component in the vector, in degrees. If undefined, the x component is used.
- rotZ:
The z component in the vector, in degrees. If undefined, the x component is used.
Return Value
A new matrix that is the result of rotating this matrix by each of the three rotation matrices about the major axes, first the x axes, y axes, and then z axes.
Discussion
This matrix is not modified by this method.