collada.scene.TranslateTransform¶
-
class
collada.scene.TranslateTransform(x, y, z, xmlnode=None)¶ Bases:
collada.scene.TransformContains a translation transformation as defined in the collada <translate> tag.
-
__init__(x, y, z, xmlnode=None)¶ Creates a translation transformation
Parameters: - x (float) – x coordinate
- y (float) – y coordinate
- z (float) – z coordinate
- xmlnode – When loaded, the xmlnode it comes from
Methods
__init__(x, y, z[, xmlnode])Creates a translation transformation load(node)save()Put all the data to the internal xml node (xmlnode) so it can be serialized. -
x= None¶ x coordinate
-
y= None¶ y coordinate
-
z= None¶ z coordinate
-
matrix= None¶ The resulting transformation matrix. This will be a numpy.array of size 4x4.
-
xmlnode= None¶ ElementTree representation of the transform.
-
save()¶ Put all the data to the internal xml node (xmlnode) so it can be serialized.
-