Matrix API/it: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{VeryImportantMessage|(Ottobre 2019) Non modificare queste pagine. Le informazioni sono incomplete e obsolete. Per l'API più recente, consultare la [https://www.freecadweb.org/api documentazione API autogenerata] o generare la documentazione autonomamente. Vedere [[Source documentation/it|Documentazione del codice sorgente]].}}

In FreeCAD le matrici 4x4 sono utilizzate ovunque e possono essere create con una delle seguenti modalità:
In FreeCAD le matrici 4x4 sono utilizzate ovunque e possono essere create con una delle seguenti modalità:
{{Code|code=
{{Code|code=
m=FreeCAD.Matrix() # m = the [http://en.wikipedia.org/wiki/Identity_matrix identity matrix]
m = FreeCAD.Matrix() # m = the [http://en.wikipedia.org/wiki/Identity_matrix identity matrix]
m=FreeCAD.Base.Matrix()
m = FreeCAD.Base.Matrix()
print m.A21() # print m[1][0]
print m.A21() # print m[1][0]
}}
}}
Line 37: Line 39:
{{APIFunction|unity| |Makes this matrix the [http://en.wikipedia.org/wiki/Identity_matrix identity matrix]|nothing.}}
{{APIFunction|unity| |Makes this matrix the [http://en.wikipedia.org/wiki/Identity_matrix identity matrix]|nothing.}}


{{Userdocnavi{{#translation:}}}}
[[Category:API/it]]
[[Category:API{{#translation:}}]]
[[Category:Poweruser Documentation{{#translation:}}]]
{{clear}}

Latest revision as of 21:01, 27 February 2020

Other languages:
(Ottobre 2019) Non modificare queste pagine. Le informazioni sono incomplete e obsolete. Per l'API più recente, consultare la documentazione API autogenerata o generare la documentazione autonomamente. Vedere Documentazione del codice sorgente.

In FreeCAD le matrici 4x4 sono utilizzate ovunque e possono essere create con una delle seguenti modalità:

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]


A( )

Description:

Returns: tutti gli elementi della matrice.

A11( )

Description:

Returns: un elemento della matrice.

A12( )

Description:

Returns: un elemento della matrice.

A13( )

Description:

Returns: un elemento della matrice.

A14( )

Description:

Returns: un elemento della matrice.

A21( )

Description:

Returns: un elemento della matrice.

A22( )

Description:

Returns: un elemento della matrice.

A23( )

Description:

Returns: un elemento della matrice.

A24( )

Description:

Returns: un elemento della matrice.

A31( )

Description:

Returns: un elemento della matrice.

A32( )

Description:

Returns: un elemento della matrice.

A33( )

Description:

Returns: un elemento della matrice.

A34( )

Description:

Returns: un elemento della matrice.

A41( )

Description:

Returns: un elemento della matrice.

A42( )

Description:

Returns: un elemento della matrice.

A43( )

Description:

Returns: un elemento della matrice.

A44( )

Description:

Returns: un elemento della matrice.

determinant( )

Description: Calcola il determinante della matrice

Returns: un numero.

inverse( )

Description: Inverte questa matrice, se è possibile

Returns: nulla.

invert( )

Description: Restituisce la matrice inversa di questa matrice, se possibile

Returns: una Matrice

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

rotateX(Float(radians))

Description: Makes this matrix a rotation about X transform

Returns: nothing.

rotateY(Float(radians))

Description: Makes this matrix a rotation about Y transform

Returns: nothing.

rotateZ(Float(radians))

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.