Matrix API/it: Difference between revisions
Renatorivo (talk | contribs) (Created page with "Category:API/it") |
(Updating to match new version of source page) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
{{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= |
|||
<pre> |
|||
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] |
||
}} |
|||
</pre> |
|||
{{APIFunction|A| | | |
{{APIFunction|A| | |tutti gli elementi della matrice.}} |
||
{{APIFunction|A11| | | |
{{APIFunction|A11| | |un elemento della matrice.}} |
||
{{APIFunction|A12| | | |
{{APIFunction|A12| | |un elemento della matrice.}} |
||
{{APIFunction|A13| | | |
{{APIFunction|A13| | |un elemento della matrice.}} |
||
{{APIFunction|A14| | | |
{{APIFunction|A14| | |un elemento della matrice.}} |
||
{{APIFunction|A21| | | |
{{APIFunction|A21| | |un elemento della matrice.}} |
||
{{APIFunction|A22| | | |
{{APIFunction|A22| | |un elemento della matrice.}} |
||
{{APIFunction|A23| | | |
{{APIFunction|A23| | |un elemento della matrice.}} |
||
{{APIFunction|A24| | | |
{{APIFunction|A24| | |un elemento della matrice.}} |
||
{{APIFunction|A31| | | |
{{APIFunction|A31| | |un elemento della matrice.}} |
||
{{APIFunction|A32| | | |
{{APIFunction|A32| | |un elemento della matrice.}} |
||
{{APIFunction|A33| | | |
{{APIFunction|A33| | |un elemento della matrice.}} |
||
{{APIFunction|A34| | | |
{{APIFunction|A34| | |un elemento della matrice.}} |
||
{{APIFunction|A41| | | |
{{APIFunction|A41| | |un elemento della matrice.}} |
||
{{APIFunction|A42| | | |
{{APIFunction|A42| | |un elemento della matrice.}} |
||
{{APIFunction|A43| | | |
{{APIFunction|A43| | |un elemento della matrice.}} |
||
{{APIFunction|A44| | | |
{{APIFunction|A44| | |un elemento della matrice.}} |
||
{{APIFunction|determinant| | |
{{APIFunction|determinant| |Calcola il [http://en.wikipedia.org/wiki/Determinant determinante] della matrice|un numero.}} |
||
{{APIFunction|inverse| |[http://en.wikipedia.org/wiki/Inverse_matrix |
{{APIFunction|inverse| |[http://en.wikipedia.org/wiki/Inverse_matrix Inverte] questa matrice, se è possibile|nulla.}} |
||
{{APIFunction|invert| | |
{{APIFunction|invert| |Restituisce [http://en.wikipedia.org/wiki/Inverse_matrix la matrice inversa] di questa matrice, se possibile|una Matrice}} |
||
{{APIFunction|move|Vector|Makes this matrix a [http://en.wikipedia.org/wiki/Translation_%28geometry%29 translation] matrix|nothing.}} |
{{APIFunction|move|Vector|Makes this matrix a [http://en.wikipedia.org/wiki/Translation_%28geometry%29 translation] matrix|nothing.}} |
||
{{APIFunction|multiply|Matrix or Vector|Returns the [http://en.wikipedia.org/wiki/Cross_product cross product] of a matrix or vector with this matrix|a Matrix}} |
{{APIFunction|multiply|Matrix or Vector|Returns the [http://en.wikipedia.org/wiki/Cross_product cross product] of a matrix or vector with this matrix|a Matrix}} |
||
Line 36: | 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 |
[[Category:API{{#translation:}}]] |
||
[[Category:Poweruser Documentation{{#translation:}}]] |
|||
{{clear}} |
{{clear}} |
||
⚫ |
Latest revision as of 21:01, 27 February 2020
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]
Description: Calcola il determinante della matrice
Returns: un numero.
Description: Inverte questa matrice, se è possibile
Returns: nulla.
Description: Restituisce la matrice inversa di questa matrice, se possibile
Returns: una Matrice
Description: Makes this matrix a translation matrix
Returns: nothing.
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.
Description: Makes this matrix a scaling transform
Returns: nothing.
Description: Makes this matrix a transformation matrix based on Vector and Matrix
Returns: nothing.
Description: Makes this matrix the identity matrix
Returns: nothing.
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Assembly, BIM, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub