Class AffineTransform

Affine Transform

A 3x3 matrix used to transform source coordinates (x1, y1) into destination coordinates (x2, y2) according to matrix multiplication:

[ x2 ]   [ scaleX shearX translateX ] [ x1 ]
[ y2 ] = [ shearY scaleY translateY ] [ y1 ]
[ 1  ]   [   0      0        1      ] [ 1  ]

After transformation,

x2 = scaleX * x1 + shearX * y1 + translateX;
y2 = scaleY * y1 + shearY * x1 + translateY;

Methods

Method Return type Brief description
Number Gets the X coordinate scaling element.
Number Gets the Y coordinate scaling element.
Number Gets the X coordinate shearing element.
Number Gets the Y coordinate shearing element.
Number Gets the X coordinate translation element in points.
Number Gets the Y coordinate translation element in points.
Affine Transform Builder Returns a new Affine Transform Builder based on this transform.

Detailed documentation

get Scale X()

Gets the X coordinate scaling element.

Return

Number


get Scale Y()

Gets the Y coordinate scaling element.

Return

Number


get Shear X()

Gets the X coordinate shearing element.

Return

Number


get Shear Y()

Gets the Y coordinate shearing element.

Return

Number


get Translate X()

Gets the X coordinate translation element in points.

Return

Number


get Translate Y()

Gets the Y coordinate translation element in points.

Return

Number


to Builder()

Returns a new Affine Transform Builder based on this transform.

Return

Affine Transform Builder

Design a Mobile Site
View Site in Mobile | Classic
Share by: