Trees | Index | Help |
|
---|
Package xode :: Module transform :: Class Transform |
|
Method Summary | |
---|---|
Initialise as an identity transform. | |
Concatenate this transform with another. | |
tuple |
Extracts the position vector. |
tuple |
Extracts the rotation matrix. |
bool |
Return true if this transform is to be absolute rather than relative to another. |
Set the matrix to rotate a point. | |
Set the matrix to scale a point. | |
Set the matrix so that there is no translation, rotation or scaling. | |
Called to make this object handle further parsing. | |
Set the matrix to translate a point. | |
_endElement(self,
name)
| |
_startElement(self,
name,
attrs)
|
Method Details |
---|
__init__(self)
Initialise as an identity transform.
|
__mul__(self, t2)Concatenate this transform with another.
|
getPosition(self)Extracts the position vector. It is returned as a tuple in the form (x, y, z).
|
getRotation(self)Extracts the rotation matrix. It is returned as a tuple in the form (m00, m01, m02, m10, m11, m12, m20, m21, m22).
|
isAbsolute(self)
|
rotate(self, x, y, z)Set the matrix to rotate a point.
|
scale(self, x, y, z)Set the matrix to scale a point.
|
setIdentity(self)Set the matrix so that there is no translation, rotation or scaling. |
takeParser(self, parser, node, attrs)Called to make this object handle further parsing. It should be called immediately after the <transform> tag has been encountered.
|
translate(self, x, y, z)Set the matrix to translate a point.
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Feb 4 17:54:12 2007 | http://epydoc.sf.net |