2.2.28 XForm Object

The XForm object defines a two-dimensional, linear transform matrix.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

M11

M12

M21

M22

Dx

Dy

M11 (4 bytes): A FLOAT matrix value.

M12 (4 bytes): A FLOAT matrix value.

M21 (4 bytes): A FLOAT matrix value.

M22 (4 bytes): A FLOAT matrix value.

Dx (4 bytes): A FLOAT value that contains a horizontal translation component, in logical units.

Dy (4 bytes): A FLOAT value that contains a vertical translation component, in logical units.

The following equations specify how the matrix values are used to transform a point (X,Y) to a new point (X',Y'):

 X' = M11 * X + M21 * Y + Dx
 Y' = M12 * X + M22 * Y + Dy

For more information concerning transforms and coordinate spaces, see [MSDN-WRLDPGSPC].