Each of the applied transformations is being appended to all the previously applied ones. When the Matrix property is calculated, the order of the applied transformations is the same as the order of the invocation of the transform methods.

The MatrixPosition class exposes a static Default property, which represents the default MatrixPosition. The default Matrix of the default MatrixPosition is the Identity matrix.

Example 1 shows how transformations can be appended.

[C#] Example 1: Trasform MatrixPosition

MatrixPosition matrixPosition = new MatrixPosition();
matrixPosition.Translate(20, 20); // Translates the position by (20, 20)
matrixPosition.Translate(30, 30); // Translates the position by (30, 30).

The resulting matrix position was translated both horizontally and vertically by 50.

Each of the applied transformations overwrites the previous transformations of the same type. When the value of the Matrix property is being calculated, the order of the transformations is the following:

Scale

Rotate

Translate

The SimplePosition class exposes a static Default property which represents the default SimplePosition.

Example 2 shows how transformations overwrite the previous transformations of the same type.