Previous topic

collada.scene.NodeNode

Next topic

collada.scene.ScaleTransform

This Page

collada.scene.RotateTransform

class collada.scene.RotateTransform(x, y, z, angle, xmlnode=None)

Bases: collada.scene.Transform

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 radians
  • xmlnode – When loaded, the xmlnode it comes from

Methods

__init__(x, y, z, angle[, xmlnode]) Creates a rotation transformation
load(collada, node)
save()
x

x coordinate

y

y coordinate

z

z coordinate

angle

angle of rotation, in radians

matrix

The resulting transformation matrix. This will be a numpy.array of size 4x4.

xmlnode

ElementTree representation of the transform.