# Matrix2DCreationDict

> Simple object passed to [Titanium.UI.createMatrix2D](https://titaniumsdk.com/docs/sdk/Titanium.UI.md#createMatrix2D) to initialize a matrix.

- Source: https://titaniumsdk.com/docs/sdk/12.6.2/Matrix2DCreationDict
- Titanium SDK version: 12.6.2
- Kind: pseudo
- Platforms: Android, iPhone, iPad, macOS

The matrix is initialized with the specified transforms.

On iOS, rotation is always performed first, regardless of the order the
properties are specified in.

On Android, specifying both `scale` and `rotate` the same dictionary results
in an incorrect transformation.

## Properties

### anchorPoint

- Type: Point
- Platforms: Android
- Default: `(0.5, 0.5)`

Point to rotate around, specified as a dictionary object with `x` and `y`
properties, where { x: 0.5, y: 0.5 } represents the center of whatever is being
rotated.

### rotate

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Default: `No rotation.`

Rotation angle, in degrees. See the [rotate](https://titaniumsdk.com/docs/sdk/Titanium.UI.Matrix2D.md#rotate) method
for a discussion of rotation.

### scale

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Default: `1`

Scale the matrix by the specified scaling factor. The same scaling factor is used
for both horizontal and vertical scaling.

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

