---
title: "Mat"
description: "API documentation for Mat"
url: https://developer.disguise.one/python-api/docs/mat/
---

# Mat

See also: [Utility Guide](/plugins/guides/utility)

Base class: _\_BlipValue_

## Properties

#### **coefficient** : _List\[float\]_ _(Read-Only)_

Get item by index or slice

#### **m00** : _float_

The (0, 0) component of the matrix

_UserName: M00_

#### **m01** : _float_

The (0, 1) component of the matrix

_UserName: M01_

#### **m02** : _float_

The (0, 2) component of the matrix

_UserName: M02_

#### **m03** : _float_

The (0, 3) component of the matrix

_UserName: M03_

#### **m10** : _float_

The (1, 0) component of the matrix

_UserName: M10_

#### **m11** : _float_

The (1, 1) component of the matrix

_UserName: M11_

#### **m12** : _float_

The (1, 2) component of the matrix

_UserName: M12_

#### **m13** : _float_

The (1, 3) component of the matrix

_UserName: M13_

#### **m20** : _float_

The (2, 0) component of the matrix

_UserName: M20_

#### **m21** : _float_

The (2, 1) component of the matrix

_UserName: M21_

#### **m22** : _float_

The (2, 2) component of the matrix

_UserName: M22_

#### **m23** : _float_

The (2, 3) component of the matrix

_UserName: M23_

#### **m30** : _float_

The (3, 0) component of the matrix

_UserName: M30_

#### **m31** : _float_

The (3, 1) component of the matrix

_UserName: M31_

#### **m32** : _float_

The (3, 2) component of the matrix

_UserName: M32_

#### **m33** : _float_

The (3, 3) component of the matrix

_UserName: M33_

## Constructors

#### **\_\_init\_\_**(self)

#### **\_\_init\_\_**(self, other: _[Mat](/python-api/docs/mat#mat)_)

Copy constructor for Mat

#### **\_\_init\_\_**(self, origin: _[Vec](/python-api/docs/vec#vec)_, eulerAngles: _[Vec](/python-api/docs/vec#vec)_)

#### **\_\_init\_\_**(self, origin: _[Vec](/python-api/docs/vec#vec)_, xAxis: _[Vec](/python-api/docs/vec#vec)_, yAxis: _[Vec](/python-api/docs/vec#vec)_, zAxis: _[Vec](/python-api/docs/vec#vec)_)

## Methods

#### **compose**(self, m: _[Mat](/python-api/docs/mat#mat)_) -> _[Mat](/python-api/docs/mat#mat)_

#### **getRotation**(self) -> _[Vec](/python-api/docs/vec#vec)_

#### **getScale**(self) -> _[Vec](/python-api/docs/vec#vec)_

#### **getTranslation**(self) -> _[Vec](/python-api/docs/vec#vec)_

#### **inverse**(self) -> _[Mat](/python-api/docs/mat#mat)_

#### **perspectiveTransform**(self, v: _[Vec](/python-api/docs/vec#vec) | [Vec2](/python-api/docs/vec2#vec2)_) -> _[Vec](/python-api/docs/vec#vec)_

#### **setAxes**(self, xAxis: _[Vec](/python-api/docs/vec#vec) | [Vec2](/python-api/docs/vec2#vec2)_, yAxis: _[Vec](/python-api/docs/vec#vec) | [Vec2](/python-api/docs/vec2#vec2)_, zAxis: _[Vec](/python-api/docs/vec#vec) | [Vec2](/python-api/docs/vec2#vec2)_) -> _Self_

#### **setRotation**(self, eulerAngles: _[Vec](/python-api/docs/vec#vec) | [Vec2](/python-api/docs/vec2#vec2)_) -> _[Mat](/python-api/docs/mat#mat)_

#### **setScale**(self, scale: _[Vec](/python-api/docs/vec#vec) | [Vec2](/python-api/docs/vec2#vec2)_) -> _Self_

#### **setTranslation**(self, v: _[Vec](/python-api/docs/vec#vec) | [Vec2](/python-api/docs/vec2#vec2)_) -> _Self_

#### **transform**(self, v: _[Vec](/python-api/docs/vec#vec) | [Vec2](/python-api/docs/vec2#vec2)_) -> _[Vec](/python-api/docs/vec#vec)_

#### **transformRect**(self, r: _[Rect](/python-api/docs/rect#rect)_) -> _[Rect](/python-api/docs/rect#rect)_

#### **transpose**(self) -> _[Mat](/python-api/docs/mat#mat)_

## Special Methods

#### **\_\_eq\_\_**(self, m: _[Mat](/python-api/docs/mat#mat)_) -> _bool_

#### **\_\_ne\_\_**(self, mat: _[Mat](/python-api/docs/mat#mat)_) -> _bool_

#### **\_\_repr\_\_**(self) -> _Any_

String representation of the Mat
