collada.scene.RotateTransform¶
- class collada.scene.RotateTransform(x, y, z, angle, xmlnode=None)¶
Contains a rotation transformation as defined in the collada <rotate> tag.
- __init__(x, y, z, angle, xmlnode=None)¶
Creates a rotation transformation
- Parameters:
x (float) – x coordinate
y (float) – y coordinate
z (float) – z coordinate
angle (float) – angle of rotation, in degrees
xmlnode – When loaded, the xmlnode it comes from
Methods
__init__(x, y, z, angle[, xmlnode])Creates a rotation transformation
load(collada, node)Load and return a class instance from an XML node.
save()Put all the data to the internal xml node (xmlnode) so it can be serialized.
Attributes
xmlnodeElementTree representation of the transform.
xx coordinate
yy coordinate
zz coordinate
angleangle of rotation, in degrees
matrixThe resulting transformation matrix.