Previous topic

collada.scene.RotateTransform

Next topic

collada.scene.Scene

This Page

collada.scene.ScaleTransform

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

Bases: collada.scene.Transform

Contains a scale transformation as defined in the collada <scale> tag.

__init__(x, y, z, xmlnode=None)

Creates a scale 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 scale transformation
load(collada, node)
save()
x

x coordinate

y

y coordinate

z

z coordinate

matrix

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

xmlnode

ElementTree representation of the transform.