Contents

rotateAxisAngle

Returns the result of rotating this matrix by a given vector and angle.

Declaration

WebKitCSSMatrix rotateAxisAngle(
    optional unrestricted double x, 
    optional unrestricted double y, 
    optional unrestricted double z, 
    optional unrestricted double angle
);

Parameters

  • x:

    The x component in the vector, in degrees.

  • y:

    The y component in the vector, in degrees. If undefined, the x component is used.

  • z:

    The z component in the vector, in degrees. If undefined, the x component is used.

  • angle:

    The angle of rotation about the axis vector, in degrees.

Return Value

A new matrix that is the result of rotating this matrix by each of the three rotation matrices about the major axes and angle. The right-hand rule is used to determine the direction of rotation.

Discussion

This matrix is not modified by this method.

See Also

Applying Operations