<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module fabmetheus_utilities.geometry.geometry_utilities.matrix</title> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> <tr bgcolor="#7799ee"> <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="fabmetheus_utilities.html"><font color="#ffffff">fabmetheus_utilities</font></a>.<a href="fabmetheus_utilities.geometry.html"><font color="#ffffff">geometry</font></a>.<a href="fabmetheus_utilities.geometry.geometry_utilities.html"><font color="#ffffff">geometry_utilities</font></a>.matrix</strong></big></big> ($Date: 2008/02/05 $)</font></td ><td align=right valign=bottom ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/fabmetheus_utilities/geometry/geometry_utilities/matrix.py">/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/fabmetheus_utilities/geometry/geometry_utilities/matrix.py</a></font></td></tr></table> <p><tt>Boolean geometry four by four matrix.</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#aa55cc"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br> <a href="fabmetheus_utilities.archive.html">fabmetheus_utilities.archive</a><br> </td><td width="25%" valign=top><a href="cStringIO.html">cStringIO</a><br> <a href="fabmetheus_utilities.euclidean.html">fabmetheus_utilities.euclidean</a><br> </td><td width="25%" valign=top><a href="fabmetheus_utilities.geometry.geometry_utilities.evaluate.html">fabmetheus_utilities.geometry.geometry_utilities.evaluate</a><br> <a href="math.html">math</a><br> </td><td width="25%" valign=top><a href="fabmetheus_utilities.xml_simple_writer.html">fabmetheus_utilities.xml_simple_writer</a><br> </td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ee77aa"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> <dt><font face="helvetica, arial"><a href="fabmetheus_utilities.geometry.geometry_utilities.matrix.html#Matrix">Matrix</a> </font></dt></dl> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> <font color="#000000" face="helvetica, arial"><a name="Matrix">class <strong>Matrix</strong></a></font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt>A four by four matrix.<br> </tt></td></tr> <tr><td> </td> <td width="100%">Methods defined here:<br> <dl><dt><a name="Matrix-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Determine whether this matrix is identical to other one.</tt></dd></dl> <dl><dt><a name="Matrix-__init__"><strong>__init__</strong></a>(self, tetragrid<font color="#909090">=None</font>)</dt><dd><tt>Add empty lists.</tt></dd></dl> <dl><dt><a name="Matrix-__ne__"><strong>__ne__</strong></a>(self, other)</dt><dd><tt>Determine whether this vector is not identical to other one.</tt></dd></dl> <dl><dt><a name="Matrix-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this four by four matrix.</tt></dd></dl> <dl><dt><a name="Matrix-addXML"><strong>addXML</strong></a>(self, depth, output)</dt><dd><tt>Add xml for this object.</tt></dd></dl> <dl><dt><a name="Matrix-getAttributes"><strong>getAttributes</strong></a>(self, prefix<font color="#909090">=''</font>)</dt><dd><tt>Get the attributes from row column attribute strings, counting from one.</tt></dd></dl> <dl><dt><a name="Matrix-getFromElementNode"><strong>getFromElementNode</strong></a>(self, elementNode, prefix)</dt><dd><tt>Get the values from row column attribute strings, counting from one.</tt></dd></dl> <dl><dt><a name="Matrix-getOtherTimesSelf"><strong>getOtherTimesSelf</strong></a>(self, otherTetragrid)</dt><dd><tt>Get this matrix reverse multiplied by the other matrix.</tt></dd></dl> <dl><dt><a name="Matrix-getSelfTimesOther"><strong>getSelfTimesOther</strong></a>(self, otherTetragrid)</dt><dd><tt>Get this matrix multiplied by the other matrix.</tt></dd></dl> </td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#eeaa77"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> <td width="100%"><dl><dt><a name="-addVertexes"><strong>addVertexes</strong></a>(geometryOutput, vertexes)</dt><dd><tt>Add the vertexes.</tt></dd></dl> <dl><dt><a name="-getBranchMatrix"><strong>getBranchMatrix</strong></a>(elementNode)</dt><dd><tt>Get matrix starting from the object if it exists, otherwise get a matrix starting from stratch.</tt></dd></dl> <dl><dt><a name="-getBranchMatrixSetElementNode"><strong>getBranchMatrixSetElementNode</strong></a>(elementNode)</dt><dd><tt>Get matrix starting from the object if it exists, otherwise get a matrix starting from stratch.</tt></dd></dl> <dl><dt><a name="-getCumulativeVector3Remove"><strong>getCumulativeVector3Remove</strong></a>(defaultVector3, elementNode, prefix)</dt><dd><tt>Get cumulative vector3 and delete the prefixed attributes.</tt></dd></dl> <dl><dt><a name="-getDiagonalSwitchedTetragrid"><strong>getDiagonalSwitchedTetragrid</strong></a>(angleDegrees, diagonals)</dt><dd><tt>Get the diagonals and switched matrix by degrees.</tt></dd></dl> <dl><dt><a name="-getDiagonalSwitchedTetragridByPolar"><strong>getDiagonalSwitchedTetragridByPolar</strong></a>(diagonals, unitPolar)</dt><dd><tt>Get the diagonals and switched matrix by unitPolar.</tt></dd></dl> <dl><dt><a name="-getDiagonalSwitchedTetragridByRadians"><strong>getDiagonalSwitchedTetragridByRadians</strong></a>(angleRadians, diagonals)</dt><dd><tt>Get the diagonals and switched matrix by radians.</tt></dd></dl> <dl><dt><a name="-getIdentityTetragrid"><strong>getIdentityTetragrid</strong></a>(tetragrid<font color="#909090">=None</font>)</dt><dd><tt>Get four by four matrix with diagonal elements set to one.</tt></dd></dl> <dl><dt><a name="-getIsIdentityTetragrid"><strong>getIsIdentityTetragrid</strong></a>(tetragrid)</dt><dd><tt>Determine if the tetragrid is the identity tetragrid.</tt></dd></dl> <dl><dt><a name="-getIsIdentityTetragridOrNone"><strong>getIsIdentityTetragridOrNone</strong></a>(tetragrid)</dt><dd><tt>Determine if the tetragrid is None or if it is the identity tetragrid.</tt></dd></dl> <dl><dt><a name="-getKeyA"><strong>getKeyA</strong></a>(row, column, prefix<font color="#909090">=''</font>)</dt><dd><tt>Get the a format key string from row & column, counting from zero.</tt></dd></dl> <dl><dt><a name="-getKeyM"><strong>getKeyM</strong></a>(row, column, prefix<font color="#909090">=''</font>)</dt><dd><tt>Get the m format key string from row & column, counting from one.</tt></dd></dl> <dl><dt><a name="-getKeysA"><strong>getKeysA</strong></a>(prefix<font color="#909090">=''</font>)</dt><dd><tt>Get the matrix keys, counting from zero.</tt></dd></dl> <dl><dt><a name="-getKeysM"><strong>getKeysM</strong></a>(prefix<font color="#909090">=''</font>)</dt><dd><tt>Get the matrix keys, counting from one.</tt></dd></dl> <dl><dt><a name="-getRemovedFloat"><strong>getRemovedFloat</strong></a>(defaultFloat, elementNode, key, prefix)</dt><dd><tt>Get the float by the key and the prefix.</tt></dd></dl> <dl><dt><a name="-getRemovedFloatByKeys"><strong>getRemovedFloatByKeys</strong></a>(defaultFloat, elementNode, keys, prefix)</dt><dd><tt>Get the float by the keys and the prefix.</tt></dd></dl> <dl><dt><a name="-getRotateAroundAxisTetragrid"><strong>getRotateAroundAxisTetragrid</strong></a>(elementNode, prefix)</dt><dd><tt>Get rotate around axis tetragrid and delete the axis and angle attributes.</tt></dd></dl> <dl><dt><a name="-getRotateTetragrid"><strong>getRotateTetragrid</strong></a>(elementNode, prefix)</dt><dd><tt>Get rotate tetragrid and delete the rotate attributes.</tt></dd></dl> <dl><dt><a name="-getScaleTetragrid"><strong>getScaleTetragrid</strong></a>(elementNode, prefix)</dt><dd><tt>Get scale matrix and delete the scale attributes.</tt></dd></dl> <dl><dt><a name="-getTetragridA"><strong>getTetragridA</strong></a>(elementNode, prefix, tetragrid)</dt><dd><tt>Get the tetragrid from the elementNode letter a values.</tt></dd></dl> <dl><dt><a name="-getTetragridC"><strong>getTetragridC</strong></a>(elementNode, prefix, tetragrid)</dt><dd><tt>Get the matrix Tetragrid from the elementNode letter c values.</tt></dd></dl> <dl><dt><a name="-getTetragridCopy"><strong>getTetragridCopy</strong></a>(tetragrid)</dt><dd><tt>Get tetragrid copy.</tt></dd></dl> <dl><dt><a name="-getTetragridM"><strong>getTetragridM</strong></a>(elementNode, prefix, tetragrid)</dt><dd><tt>Get the tetragrid from the elementNode letter m values.</tt></dd></dl> <dl><dt><a name="-getTetragridMatrix"><strong>getTetragridMatrix</strong></a>(elementNode, prefix, tetragrid)</dt><dd><tt>Get the tetragrid from the elementNode matrix value.</tt></dd></dl> <dl><dt><a name="-getTetragridR"><strong>getTetragridR</strong></a>(elementNode, prefix, tetragrid)</dt><dd><tt>Get the tetragrid from the elementNode letter r values.</tt></dd></dl> <dl><dt><a name="-getTetragridTimesOther"><strong>getTetragridTimesOther</strong></a>(firstTetragrid, otherTetragrid)</dt><dd><tt>Get this matrix multiplied by the other matrix.</tt></dd></dl> <dl><dt><a name="-getTransformTetragrid"><strong>getTransformTetragrid</strong></a>(elementNode, prefix)</dt><dd><tt>Get the tetragrid from the elementNode.</tt></dd></dl> <dl><dt><a name="-getTransformedByList"><strong>getTransformedByList</strong></a>(floatList, point)</dt><dd><tt>Get the point transformed by the array.</tt></dd></dl> <dl><dt><a name="-getTransformedVector3"><strong>getTransformedVector3</strong></a>(tetragrid, vector3)</dt><dd><tt>Get the vector3 multiplied by a matrix.</tt></dd></dl> <dl><dt><a name="-getTransformedVector3Blindly"><strong>getTransformedVector3Blindly</strong></a>(tetragrid, vector3)</dt><dd><tt>Get the vector3 multiplied by a tetragrid without checking if the tetragrid exists.</tt></dd></dl> <dl><dt><a name="-getTransformedVector3s"><strong>getTransformedVector3s</strong></a>(tetragrid, vector3s)</dt><dd><tt>Get the vector3s multiplied by a matrix.</tt></dd></dl> <dl><dt><a name="-getTranslateTetragrid"><strong>getTranslateTetragrid</strong></a>(elementNode, prefix)</dt><dd><tt>Get translate matrix and delete the translate attributes.</tt></dd></dl> <dl><dt><a name="-getTranslateTetragridByTranslation"><strong>getTranslateTetragridByTranslation</strong></a>(translation)</dt><dd><tt>Get translate tetragrid by translation.</tt></dd></dl> <dl><dt><a name="-getVertexes"><strong>getVertexes</strong></a>(geometryOutput)</dt><dd><tt>Get the vertexes.</tt></dd></dl> <dl><dt><a name="-setAttributesToMultipliedTetragrid"><strong>setAttributesToMultipliedTetragrid</strong></a>(elementNode, tetragrid)</dt><dd><tt>Set the element attribute dictionary and element matrix to the matrix times the tetragrid.</tt></dd></dl> <dl><dt><a name="-setElementNodeDictionaryMatrix"><strong>setElementNodeDictionaryMatrix</strong></a>(elementNode, matrix4X4)</dt><dd><tt>Set the element attribute dictionary or element matrix to the matrix.</tt></dd></dl> <dl><dt><a name="-transformVector3Blindly"><strong>transformVector3Blindly</strong></a>(tetragrid, vector3)</dt><dd><tt>Transform the vector3 by a tetragrid without checking to see if it exists.</tt></dd></dl> <dl><dt><a name="-transformVector3ByMatrix"><strong>transformVector3ByMatrix</strong></a>(tetragrid, vector3)</dt><dd><tt>Transform the vector3 by a matrix.</tt></dd></dl> <dl><dt><a name="-transformVector3sByMatrix"><strong>transformVector3sByMatrix</strong></a>(tetragrid, vector3s)</dt><dd><tt>Transform the vector3s by a matrix.</tt></dd></dl> </td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#55aa55"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> <td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br> <strong>__credits__</strong> = 'Art of Illusion <http://www.artofillusion.org/>'<br> <strong>__date__</strong> = '$Date: 2008/02/05 $'<br> <strong>__license__</strong> = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'<br> <strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)<br> <strong>globalExecutionOrder</strong> = 300</td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#7799ee"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr> <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> <td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#7799ee"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr> <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> <td width="100%">Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table> </body></html>