Gimp.Matrix4

Fields

Name

Type

Access

Description

coeff

[float]

r/w

the coefficients

Methods

identity ()

mult (right)

to_deg ()

transform_point (x, y, z)

Details

class Gimp.Matrix4

A four by four matrix.

identity()

Sets the matrix to the identity matrix.

New in version 2.10.16.

mult(right)
Parameters:

right (Gimp.Matrix4) – The second input matrix which will be overwritten by the result.

Multiplies two matrices and puts the result into the second one.

New in version 2.10.16.

to_deg()
Return type:

(a: float, b: float, c: float)

transform_point(x, y, z)
Parameters:
  • x (float) – The source X coordinate.

  • y (float) – The source Y coordinate.

  • z (float) – The source Z coordinate.

Returns:

The transformed W coordinate.

newx:

The transformed X coordinate.

newy:

The transformed Y coordinate.

newz:

The transformed Z coordinate.

Return type:

(float, newx: float, newy: float, newz: float)

Transforms a point in 3D as specified by the transformation matrix.

New in version 2.10.16.