330 lines
13 KiB
HTML
330 lines
13 KiB
HTML
<html><head><title>Matrix API/es</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Matrix API/es</h1></div>
|
|
|
|
<div id="mw-content-text" lang="es" dir="ltr" class="mw-content-ltr"><hr/><div class="mw-parser-output"><p>Las matrices 4x4 se utilizan en todas partes en FreeCAD y pueden crearse de una de las formas siguientes:
|
|
</p>
|
|
<pre>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] </pre>
|
|
<p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Todos los elementos de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A11</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A12</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A13</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A14</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A21</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A22</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A23</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A24</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A31</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A32</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A33</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A34</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A41</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A42</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A43</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>A44</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small>
|
|
</p><p><small><b>Devuelve</b>:</small> Un elemento de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>determinant</b></big> ( <i>Float</i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small> Calcula el determinante de la matriz
|
|
</p><p><small><b>Devuelve</b>:</small> El determinante de la matriz.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>inverse</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small> Calcula la matriz inversa, si es posible
|
|
</p><p><small><b>Devuelve</b>:</small> Una matriz
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>invert</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small> Calcula la inversa de la matriz, si es posible
|
|
</p><p><small><b>Devuelve</b>:</small> Una matriz
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>move</b></big> ( <i>Vector</i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small> Mueve la matriz a lo largo del vector
|
|
</p><p><small><b>Devuelve</b>:</small> Nada.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>multiply</b></big> ( <i>Matrix or Vector</i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small> Multiplica una matriz o vector con esta matriz
|
|
</p><p><small><b>Devuelve</b>:</small> Nada.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>rotateX</b></big> ( <i>Float</i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small> Gira la matriz alrededor del eje X (en radianes)
|
|
</p><p><small><b>Devuelve</b>:</small> Nada.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>rotateY</b></big> ( <i>Float</i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small> Gira la matriz alrededor del eje X (en radianes)
|
|
</p><p><small><b>Devuelve</b>:</small> Nada.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>rotateZ</b></big> ( <i>Float</i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small> Gira la matriz alrededor del eje X (en radianes)
|
|
</p><p><small><b>Devuelve</b>:</small> Nada.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>scale</b></big> ( <i>Vector</i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small> Escala la matriz con un vector
|
|
</p><p><small><b>Devuelve</b>:</small> Nada.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>transform</b></big> ( <i>Vector or Matrix</i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small> Devuelve el producto escalar de los dos vectores
|
|
</p><p><small><b>Devuelve</b>:</small>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p><p><br />
|
|
</p>
|
|
<div class="api">
|
|
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>unity</b></big> ( <i> </i> )</div>
|
|
<div class="description">
|
|
<p><small><b>Descripción</b>:</small> Hace esta matriz la matriz identidad
|
|
</p><p><small><b>Devuelve</b>:</small> Nada.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div style="clear:both"></div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div><div class="printfooter">
|
|
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Matrix_API/es&oldid=133258">http://www.freecadweb.org/wiki/index.php?title=Matrix_API/es&oldid=133258</a>"</div>
|
|
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
|
|
</div>
|
|
</div>
|
|
<div id="mw-navigation">
|
|
<h2>Navigation menu</h2>
|
|
|
|
</body></html> |