Affine |
public struct AffineTransform
The AffineTransform type exposes the following members.
Name | Description | |
---|---|---|
A | The 'a' matrix element. This is the 'a' element in the affine transformation matrix [a b 0; c d 0; e f 1] | |
B | The 'b' matrix element. This is the 'b' element in the affine transformation matrix [a b 0; c d 0; e f 1] | |
C | The 'c' matrix element. This is the 'c' element in the affine transformation matrix [a b 0; c d 0; e f 1] | |
D | The 'd' matrix element. This is the 'd' element in the affine transformation matrix [a b 0; c d 0; e f 1] | |
E | The 'e' matrix element. This is the 'e' element in the affine transformation matrix [a b 0; c d 0; e f 1] | |
F | The 'f' matrix element. This is the 'f' element in the affine transformation matrix [a b 0; c d 0; e f 1] | |
Identity | The identity transform |
Name | Description | |
---|---|---|
Concatenate | Concatenate transform with other transform. Concatenating a transform with an other transform is equivalent to left-multiplying the transform's matrix with with the other transform's matrix. | |
Invert | Invert the transform A transform usually maps from the transformed coordinate system to the untransformed coordinate system. Use this method to create the reverse transform. | |
Rotate | Rotate. Rotations are produced by [cos(a) sin(a) -sin(a) cos(a) 0 0], which has the effect of rotating the coordinate system axes by an angle "a" in counterclockwise direction around the origin. If the given center is not , then the rotation is performed around the given center point, which is equivalent to the following sequence:
| |
Scale | Scale. Scaling is obtained by [sx 0 0 sy 0 0]. This scales the coordinates so that 1 unit in the horizontal and vertical dimensions of the new coordinate system is the same size as sx and sy units, respectively, in the previous coordinate system. | |
Skew | Skew. Skew is specified by [1 tan a tan b 1 0 0], which skews the x axis by an angle a and the y axis by an angle b. | |
TransformPoint | Transforms the given point. | |
TransformQuadrilateral | Transform a given quadrilateral If the input quadrilateral is a parallelogram, then the output is also a parallelogram. | |
TransformRectangle | Transform the given rectangle For a general affine transformation, the returned Quadrilateral is a parallelogram. | |
Translate | Translate. Translations are specified as [1 0 0 1 tx ty], where tx and ty are the distances to translate the origin of the coordinate system in the horizontal and vertical dimensions, respectively. |