Matrix API/de

From FreeCAD Documentation
Jump to navigation Jump to search
This page is a translated version of the page Matrix API and the translation is 25% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎română
(November 2018) Diese Information kann unvollständig und veraltet sein. Für die letzte API siehe die (engl.) autogenerierte API-Dokumentation.

4x4-Matrizen werden überall in FreeCAD verwendet und können auf eine der folgenden Weisen erstellt werden:

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


Method.png A( )

Description:

Returns: all the matrix elements.

Method.png A11( )

Description:

Returns: a matrix element.

Method.png A12( )

Description:

Returns: a matrix element.

Method.png A13( )

Description:

Returns: a matrix element.

Method.png A14( )

Description:

Returns: a matrix element.

Method.png A21( )

Description:

Returns: a matrix element.

Method.png A22( )

Description:

Returns: a matrix element.

Method.png A23( )

Description:

Returns: a matrix element.

Method.png A24( )

Description:

Returns: a matrix element.

Method.png A31( )

Description:

Returns: a matrix element.

Method.png A32( )

Description:

Returns: a matrix element.

Method.png A33( )

Description:

Returns: a matrix element.

Method.png A34( )

Description:

Returns: a matrix element.

Method.png A41( )

Description:

Returns: a matrix element.

Method.png A42( )

Description:

Returns: a matrix element.

Method.png A43( )

Description:

Returns: a matrix element.

Method.png A44( )

Description:

Returns: a matrix element.

Method.png determinant( )

Description: Computes the determinant of the matrix

Returns: a number.

Method.png inverse( )

Description: Inverts this matrix, if possible

Returns: nothing.

Method.png invert( )

Description: Returns the inverse of this matrix, if possible

Returns: a Matrix

Method.png move(Vector)

Description: Makes this matrix a translation matrix

Returns: nothing.

Method.png multiply(Matrix or Vector)

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

Returns: a Matrix

Method.png rotateX(Float(radians))

Description: Makes this matrix a rotation about X transform

Returns: nothing.

Method.png rotateY(Float(radians))

Description: Makes this matrix a rotation about Y transform

Returns: nothing.

Method.png rotateZ(Float(radians))

Description: Makes this matrix a rotation about Z transform

Returns: nothing.

Method.png scale(Vector)

Description: Makes this matrix a scaling transform

Returns: nothing.

Method.png transform(Vector, Matrix)

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

Returns: nothing.

Method.png unity( )

Description: Makes this matrix the identity matrix

Returns: nothing.