# Python: module fabmetheus_utilities.geometry.geometry_utilities.matrix

fabmetheus_utilities.geometry.geometry_utilities.matrix ($Date: 2008/02/05 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/fabmetheus_utilities/geometry/geometry_utilities/matrix.py

`Boolean geometry four by four matrix.`

Modules

``

__init__ fabmetheus_utilities.archive | cStringIO fabmetheus_utilities.euclidean | fabmetheus_utilities.geometry.geometry_utilities.evaluate math | fabmetheus_utilities.xml_simple_writer

Classes

``

Matrix

class Matrix
`` | `A four by four matrix.`

Methods defined here:

__eq__(self, other)
  `Determine whether this matrix is identical to other one.`

__init__(self, tetragrid=None)
  `Add empty lists.`

__ne__(self, other)
  `Determine whether this vector is not identical to other one.`

__repr__(self)
  `Get the string representation of this four by four matrix.`

addXML(self, depth, output)
  `Add xml for this object.`

getAttributes(self, prefix='')
  `Get the attributes from row column attribute strings, counting from one.`

getFromElementNode(self, elementNode, prefix)
  `Get the values from row column attribute strings, counting from one.`

getOtherTimesSelf(self, otherTetragrid)
  `Get this matrix reverse multiplied by the other matrix.`

getSelfTimesOther(self, otherTetragrid)
  `Get this matrix multiplied by the other matrix.`

Functions

``

addVertexes(geometryOutput, vertexes)
  `Add the vertexes.`

getBranchMatrix(elementNode)
  `Get matrix starting from the object if it exists, otherwise get a matrix starting from stratch.`

getBranchMatrixSetElementNode(elementNode)
  `Get matrix starting from the object if it exists, otherwise get a matrix starting from stratch.`

getCumulativeVector3Remove(defaultVector3, elementNode, prefix)
  `Get cumulative vector3 and delete the prefixed attributes.`

getDiagonalSwitchedTetragrid(angleDegrees, diagonals)
  `Get the diagonals and switched matrix by degrees.`

getDiagonalSwitchedTetragridByPolar(diagonals, unitPolar)
  `Get the diagonals and switched matrix by unitPolar.`

getDiagonalSwitchedTetragridByRadians(angleRadians, diagonals)
  `Get the diagonals and switched matrix by radians.`

getIdentityTetragrid(tetragrid=None)
  `Get four by four matrix with diagonal elements set to one.`

getIsIdentityTetragrid(tetragrid)
  `Determine if the tetragrid is the identity tetragrid.`

getIsIdentityTetragridOrNone(tetragrid)
  `Determine if the tetragrid is None or if it is the identity tetragrid.`

getKeyA(row, column, prefix='')
  `Get the a format key string from row & column, counting from zero.`

getKeyM(row, column, prefix='')
  `Get the m format key string from row & column, counting from one.`

getKeysA(prefix='')
  `Get the matrix keys, counting from zero.`

getKeysM(prefix='')
  `Get the matrix keys, counting from one.`

getRemovedFloat(defaultFloat, elementNode, key, prefix)
  `Get the float by the key and the prefix.`

getRemovedFloatByKeys(defaultFloat, elementNode, keys, prefix)
  `Get the float by the keys and the prefix.`

getRotateAroundAxisTetragrid(elementNode, prefix)
  `Get rotate around axis tetragrid and delete the axis and angle attributes.`

getRotateTetragrid(elementNode, prefix)
  `Get rotate tetragrid and delete the rotate attributes.`

getScaleTetragrid(elementNode, prefix)
  `Get scale matrix and delete the scale attributes.`

getTetragridA(elementNode, prefix, tetragrid)
  `Get the tetragrid from the elementNode letter a values.`

getTetragridC(elementNode, prefix, tetragrid)
  `Get the matrix Tetragrid from the elementNode letter c values.`

getTetragridCopy(tetragrid)
  `Get tetragrid copy.`

getTetragridM(elementNode, prefix, tetragrid)
  `Get the tetragrid from the elementNode letter m values.`

getTetragridMatrix(elementNode, prefix, tetragrid)
  `Get the tetragrid from the elementNode matrix value.`

getTetragridR(elementNode, prefix, tetragrid)
  `Get the tetragrid from the elementNode letter r values.`

getTetragridTimesOther(firstTetragrid, otherTetragrid)
  `Get this matrix multiplied by the other matrix.`

getTransformTetragrid(elementNode, prefix)
  `Get the tetragrid from the elementNode.`

getTransformedByList(floatList, point)
  `Get the point transformed by the array.`

getTransformedVector3(tetragrid, vector3)
  `Get the vector3 multiplied by a matrix.`

getTransformedVector3Blindly(tetragrid, vector3)
  `Get the vector3 multiplied by a tetragrid without checking if the tetragrid exists.`

getTransformedVector3s(tetragrid, vector3s)
  `Get the vector3s multiplied by a matrix.`

getTranslateTetragrid(elementNode, prefix)
  `Get translate matrix and delete the translate attributes.`

getTranslateTetragridByTranslation(translation)
  `Get translate tetragrid by translation.`

getVertexes(geometryOutput)
  `Get the vertexes.`

setAttributesToMultipliedTetragrid(elementNode, tetragrid)
  `Set the element attribute dictionary and element matrix to the matrix times the tetragrid.`

setElementNodeDictionaryMatrix(elementNode, matrix4X4)
  `Set the element attribute dictionary or element matrix to the matrix.`

transformVector3Blindly(tetragrid, vector3)
  `Transform the vector3 by a tetragrid without checking to see if it exists.`

transformVector3ByMatrix(tetragrid, vector3)
  `Transform the vector3 by a matrix.`

transformVector3sByMatrix(tetragrid, vector3s)
  `Transform the vector3s by a matrix.`

Data
`` |  | __author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __credits__ = 'Art of Illusion <http://www.artofillusion.org/>' __date__ = '$Date: 2008/02/05 $' __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384) globalExecutionOrder = 300

Author
`` |  | Enrique Perez (perez_enrique@yahoo.com)

Credits
`` |  | Art of Illusion <http://www.artofillusion.org/>