# Matrix API

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎română
(October 2019) Do not edit this page. The information is incomplete and outdated. For the latest API, see the autogenerated API documentation, or generate the documentation yourself, see Source documentation.

4x4 Matrixes are used everywhere throughout FreeCAD and can be created by one of the following manners:

```m = FreeCAD.Matrix()          # m = the [http://en.wikipedia.org/wiki/Identity_matrix identity matrix]
print m.A21()               # print m[1][0]
```

A( )

Description:

Returns: all the matrix elements.

A11( )

Description:

Returns: a matrix element.

A12( )

Description:

Returns: a matrix element.

A13( )

Description:

Returns: a matrix element.

A14( )

Description:

Returns: a matrix element.

A21( )

Description:

Returns: a matrix element.

A22( )

Description:

Returns: a matrix element.

A23( )

Description:

Returns: a matrix element.

A24( )

Description:

Returns: a matrix element.

A31( )

Description:

Returns: a matrix element.

A32( )

Description:

Returns: a matrix element.

A33( )

Description:

Returns: a matrix element.

A34( )

Description:

Returns: a matrix element.

A41( )

Description:

Returns: a matrix element.

A42( )

Description:

Returns: a matrix element.

A43( )

Description:

Returns: a matrix element.

A44( )

Description:

Returns: a matrix element.

determinant( )

Description: Computes the determinant of the matrix

Returns: a number.

inverse( )

Description: Inverts this matrix, if possible

Returns: nothing.

invert( )

Description: Returns the inverse of this matrix, if possible

Returns: a Matrix

move(Vector)

Description: Makes this matrix a translation matrix

Returns: nothing.

multiply(Matrix or Vector)

Description: Returns the cross product of a matrix or vector with this matrix

Returns: a Matrix

Description: Makes this matrix a rotation about X transform

Returns: nothing.

Description: Makes this matrix a rotation about Y transform

Returns: nothing.

Description: Makes this matrix a rotation about Z transform

Returns: nothing.

scale(Vector)

Description: Makes this matrix a scaling transform

Returns: nothing.

transform(Vector, Matrix)

Description: Makes this matrix a transformation matrix based on Vector and Matrix

Returns: nothing.

unity( )

Description: Makes this matrix the identity matrix

Returns: nothing.