[ x'] [ m00 m01 m02 ] [ x ] [ m00x + m01y + m02 ] [ y'] = [ m10 m11 m12 ] [ y ] = [ m10x + m11y + m12 ] [ 1 ] [ 0 0 1 ] [ 1 ] [ 1 ]This class is optimized for speed and minimizes calculations based on its knowledge of the underlying matrix (as opposed to say simply performing matrix multiplication).
Object
goog.graphics.AffineTransform
|
opt_m00
:
The m00 coordinate of the transform.
|
|
opt_m10
:
The m10 coordinate of the transform.
|
|
opt_m01
:
The m01 coordinate of the transform.
|
|
opt_m11
:
The m11 coordinate of the transform.
|
|
opt_m02
:
The m02 coordinate of the transform.
|
|
opt_m12
:
The m12 coordinate of the transform.
|
|
No description.
Returns:
A copy of this transform.
|
code » | |||||||
|
Concatenates an affine transform to this transform.
Arguments:
Returns:
This affine transform.
|
code » | |||||||
|
Sets this transform to be identical to the given transform.
Arguments:
Returns:
This affine transform.
|
code » | |||||||
|
No description.
Returns:
An AffineTransform object representing the inverse transformation.
|
code » | |||||||
|
No description.
Returns:
The determinant of this transform.
|
code » | |||||||
|
No description.
Returns:
The scaling factor in the x-direction (m00).
|
code » | |||||||
|
No description.
Returns:
The scaling factor in the y-direction (m11).
|
code » | |||||||
|
No description.
Returns:
The shear factor in the x-direction (m01).
|
code » | |||||||
|
No description.
Returns:
The shear factor in the y-direction (m10).
|
code » | |||||||
|
No description.
Returns:
The translation in the x-direction (m02).
|
code » | |||||||
|
No description.
Returns:
The translation in the y-direction (m12).
|
code » | |||||||
|
No description.
Returns:
Whether this transform is the identity transform.
|
code » | |||||||
|
Returns whether the transform is invertible. A transform is not invertible
if the determinant is 0 or any value is non-finite or NaN.
Returns:
Whether the transform is invertible.
|
code » | |||||||
|
Pre-concatenates an affine transform to this transform.
Arguments:
Returns:
This affine transform.
|
code » | |||||||
|
Concatentates this transform with a rotation transformation around an anchor
point.
Arguments:
Returns:
This affine transform.
|
code » | |||||||
|
Concatentates this transform with a scaling transformation.
Returns:
This affine transform.
|
code » | |||||||
|
Sets this transform to a rotation transformation.
Arguments:
Returns:
This affine transform.
|
code » | |||||||
|
Sets this transform to a scaling transformation.
Returns:
This affine transform.
|
code » | |||||||
|
Sets this transform to a shearing transformation.
Returns:
This affine transform.
|
code » | |||||||
|
Sets this transform to a translation transformation.
Arguments:
Returns:
This affine transform.
|
code » | |||||||
|
Sets this transform to the matrix specified by the 6 values.
Arguments:
Returns:
This affine transform.
|
code » | |||||||
|
Concatentates this transform with a shear transformation.
Returns:
This affine transform.
|
code » | |||||||
|
No description.
Returns:
A string representation of this transform. The format of of the string is compatible with SVG matrix notation, i.e. "matrix(a,b,c,d,e,f)".
|
code » | |||||||
transform(src, srcOff, dst, dstOff, numPts)
Transforms an array of coordinates by this transform and stores the result
into a destination array.
Arguments:
|
code » | |||||||
|
Concatentates this transform with a translate transformation.
Arguments:
Returns:
This affine transform.
|
code » |
|
Creates a transform representing a rotation transformation.
Arguments:
Returns:
A transform representing a rotation transformation.
|
code » | ||||
|
Creates a transform representing a scaling transformation.
Returns:
A transform representing a scaling transformation.
|
code » | ||||
|
Creates a transform representing a shearing transformation.
Returns:
A transform representing a shearing transformation.
|
code » | ||||
|
Creates a transform representing a translation transformation.
Arguments:
Returns:
A transform representing a translation transformation.
|
code » |