Contents

scale

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

Declaration

WebKitCSSMatrix scale(
    optional unrestricted double scaleX, 
    optional unrestricted double scaleY, 
    optional unrestricted double scaleZ
);

Parameters

  • scaleX:

    The x component in the vector.

  • scaleY:

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

  • scaleZ:

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

Return Value

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

Discussion

This matrix is not modified by this method.

See Also

Applying Operations