Contents

translate

Returns the result of translating this matrix by a given vector.

Declaration

WebKitCSSMatrix translate(
    optional unrestricted double x, 
    optional unrestricted double y, 
    optional unrestricted double z
);

Parameters

  • x:

    The x component in the vector.

  • y:

    The y component in the vector.

  • z:

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

Return Value

A new matrix that is the result of translating this matrix.

Discussion

This matrix is not modified by this method.

See Also

Applying Operations