Module _curvelib :: Class CMatrix4
[hide private]
[frames] | no frames]

Class CMatrix4

object --+
         |
        CMatrix4

A 4x4 matrix with methods for affine transformations.

Instance Methods [hide private]
 
__add__(x, y)
x+y
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
 
__delitem__(x, y)
del x[y]
 
__eq__(x, y)
x==y
 
__ge__(x, y)
x>=y
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__getitem__(x, y)
x[y]
 
__gt__(x, y)
x>y
 
__iadd__(x, y)
x+y
 
__imul__(x, y)
x*y
 
__isub__(x, y)
x-y
 
__le__(x, y)
x<=y
 
__len__(x)
len(x)
 
__lt__(x, y)
x<y
 
__mul__(x, y)
x*y
 
__ne__(x, y)
x!=y
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__radd__(x, y)
y+x
 
__repr__(x)
repr(x)
 
__rmul__(x, y)
y*x
 
__rsub__(x, y)
y-x
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
 
__setitem__(x, i, y)
x[i]=y
 
__sub__(x, y)
x-y
None
makeIdentity(self)
Set this matrix to be the identity matrix.
None
rotateX(self, angleInRadians)
Post-multiply this matrix by a rotation around the X axis.
None
rotateY(self, angleInRadians)
Post-multiply this matrix by a rotation around the Y axis.
None
rotateZ(self, angleInRadians)
Post-multiply this matrix by a rotation around the Z axis.
None
scale(self, x, y, z)
Post-multiply this matrix by a scale transformation.
None
skew(self, x, y, z)
Post-multiply this matrix with a skew transformation.
None
translate(self, x, y, z)
Post-multiply this matrix by a translation matrix.
None
translation(self, x, y, z)
Set this matrix to be a translation matrix, replacing any existing values.
None
transpose(self)
Transpose the matrix in-place.

Inherited from object: __format__, __hash__, __init__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__delattr__(...)

 

x.__delattr__('name') <==> del x.name

Overrides: object.__delattr__

__getattribute__(...)

 

x.__getattribute__('name') <==> x.name

Overrides: object.__getattribute__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__repr__(x)
(Representation operator)

 

repr(x)

Overrides: object.__repr__

__setattr__(...)

 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__

scale(self, x, y, z)

 

Post-multiply this matrix by a scale transformation. The y and z parameters may be left out; if so the scale is uniform along all three axes.

Returns: None

skew(self, x, y, z)

 

Post-multiply this matrix with a skew transformation. The y and z parameters may be left out; if so, the skew is in the X direction only.

Returns: None

translation(self, x, y, z)

 

Set this matrix to be a translation matrix, replacing any existing values.

This is different from other methods in this class as it replaces, rather than multiplying by, the existing values in the matrix.

Returns: None