Clutter.Matrix

Fields

None

Methods

class

alloc ()

free ()

init_from_array (values)

init_from_matrix (b)

init_identity ()

Details

class Clutter.Matrix

A type representing a 4x4 matrix.

It is identicaly to Cogl.Matrix.

New in version 1.12.

classmethod alloc()
Returns:

the newly allocated Clutter.Matrix

Return type:

Clutter.Matrix

Allocates enough memory to hold a Clutter.Matrix.

New in version 1.12.

free()

Frees the memory allocated by Clutter.Matrix.alloc().

New in version 1.12.

init_from_array(values)
Parameters:

values ([float]) – a C array of 16 floating point values, representing a 4x4 matrix, with column-major order

Returns:

the initialzed Clutter.Matrix

Return type:

Clutter.Matrix

Initializes self with the contents of a C array of floating point values.

New in version 1.12.

init_from_matrix(b)
Parameters:

b (Clutter.Matrix) – the Clutter.Matrix to copy

Returns:

the initialized Clutter.Matrix

Return type:

Clutter.Matrix

Initializes the Clutter.Matrix self with the contents of the Clutter.Matrix b.

New in version 1.12.

init_identity()
Returns:

the initialized Clutter.Matrix

Return type:

Clutter.Matrix

Initializes self with the identity matrix, i.e.:

.xx = 1.0, .xy = 0.0, .xz = 0.0, .xw = 0.0
.yx = 0.0, .yy = 1.0, .yz = 0.0, .yw = 0.0
.zx = 0.0, .zy = 0.0, .zz = 1.0, .zw = 0.0
.wx = 0.0, .wy = 0.0, .wz = 0.0, .ww = 1.0

New in version 1.12.