[ 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).
goog.math.AffineTransform |
opt_m00
: number=
The m00 coordinate of the transform.
|
opt_m10
: number=
The m10 coordinate of the transform.
|
opt_m01
: number=
The m01 coordinate of the transform.
|
opt_m11
: number=
The m11 coordinate of the transform.
|
opt_m02
: number=
The m02 coordinate of the transform.
|
opt_m12
: number=
The m12 coordinate of the transform.
|
No description.
Returns: !goog.math.AffineTransform
A copy of this transform.
|
code » | |||||||
Concatenates an affine transform to this transform.
Arguments:
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
Sets this transform to be identical to the given transform.
Arguments:
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
No description.
Returns: !goog.math.AffineTransform
An AffineTransform object
representing the inverse transformation.
|
code » | |||||||
Compares two affine transforms for equality.
Arguments:
Returns: boolean
whether the two transforms are equal.
|
code » | |||||||
No description.
Returns: number
The determinant of this transform.
|
code » | |||||||
No description.
Returns: number
The scaling factor in the x-direction (m00).
|
code » | |||||||
No description.
Returns: number
The scaling factor in the y-direction (m11).
|
code » | |||||||
No description.
Returns: number
The shear factor in the x-direction (m01).
|
code » | |||||||
No description.
Returns: number
The shear factor in the y-direction (m10).
|
code » | |||||||
No description.
Returns: number
The translation in the x-direction (m02).
|
code » | |||||||
No description.
Returns: number
The translation in the y-direction (m12).
|
code » | |||||||
No description.
Returns: boolean
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: boolean
Whether the transform is invertible.
|
code » | |||||||
Pre-concatenates an affine transform to this transform.
Arguments:
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
Pre-concatenates this transform with a rotation transformation around an
anchor point.
Arguments:
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
Pre-concatenates this transform with a scaling transformation,
i.e. calculates the following matrix product:
[sx 0 0] [m00 m01 m02] [ 0 sy 0] [m10 m11 m12] [ 0 0 1] [ 0 0 1]
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
Pre-concatenates this transform with a shear transformation.
i.e. calculates the following matrix product:
[ 1 shx 0] [m00 m01 m02] [shy 1 0] [m10 m11 m12] [ 0 0 1] [ 0 0 1]
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
Pre-concatenates this transform with a translate transformation,
i.e. calculates the following matrix product:
[1 0 dx] [m00 m01 m02] [0 1 dy] [m10 m11 m12] [0 0 1] [ 0 0 1]
Arguments:
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
Concatenates this transform with a rotation transformation around an anchor
point.
Arguments:
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
Concatenates this transform with a scaling transformation.
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
Sets this transform to a rotation transformation.
Arguments:
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
Sets this transform to a scaling transformation.
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
Sets this transform to a shearing transformation.
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
Sets this transform to a translation transformation.
Arguments:
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
Sets this transform to the matrix specified by the 6 values.
Arguments:
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
Concatenates this transform with a shear transformation.
Returns: !goog.math.AffineTransform
This affine transform.
|
code » | |||||||
No description.
Returns: string
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 » | |||||||
![]()
Transforms an array of coordinates by this transform and stores the result
into a destination array.
Arguments:
|
code » | |||||||
Concatenates this transform with a translate transformation.
Arguments:
Returns: !goog.math.AffineTransform
This affine transform.
|
code » |
Creates a transform representing a rotation transformation.
Arguments:
Returns: !goog.math.AffineTransform
A transform representing a rotation
transformation.
|
code » | ||||
Creates a transform representing a scaling transformation.
Returns: !goog.math.AffineTransform
A transform representing a scaling
transformation.
|
code » | ||||
Creates a transform representing a shearing transformation.
Returns: !goog.math.AffineTransform
A transform representing a shearing
transformation.
|
code » | ||||
Creates a transform representing a translation transformation.
Arguments:
Returns: !goog.math.AffineTransform
A transform representing a
translation transformation.
|
code » |