Matrix3x2F::Matrix3x2F(FLOAT,FLOAT,FLOAT,FLOAT,FLOAT,FLOAT) method (d2d1helper.h)

Instantiates a new instance of the Matrix3x2F class that contains the specified values.

Syntax

void Matrix3x2F(
  FLOAT m11,
  FLOAT m12,
  FLOAT m21,
  FLOAT m22,
  FLOAT m31,
  FLOAT m32
);

Parameters

m11

Type: FLOAT

The value in the first row and first column of the matrix.

m12

Type: FLOAT

The value in the first row and second column of the matrix.

m21

Type: FLOAT

The value in the second row and first column of the matrix.

m22

Type: FLOAT

The value in the second row and second column of the matrix.

m31

Type: FLOAT

The value in the third row and first column of the matrix.

m32

Type: FLOAT

The value in the third row and second column of the matrix.

Return value

None

Remarks

This method enables you to explicitly set the values of matrix members. When using this method, ensure that each member represents an appropriate value for your transformation matrix. For example, to create the identity matrix, you must set _11 and _22 to 1, and the rest to 0. To create a translation matrix, you must set _11 and _22 to 1, _12 and _21 to 0, _31 to the x displacement, and _32 to the y displacement.

For convenience and accuracy, we recommended that whenever possible you use other helper functions, such as Identity and Translation, instead of this one.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps only]
Target Platform Windows
Header d2d1helper.h
Library D2d1.lib
DLL D2d1.dll

See also

Matrix3x2F