Gegl.Matrix3¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
coeff |
[ |
r/w |
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gegl.Matrix3¶
- classmethod new()¶
- Returns:
A newly allocated
Gegl.Matrix3
- Return type:
- copy()¶
- Return type:
Returns a copy of src.
- copy_into(src)¶
- Parameters:
src (
Gegl.Matrix3
) – aGegl.Matrix3
Copies the matrix in src into self.
- equal(matrix2)¶
- Parameters:
matrix2 (
Gegl.Matrix3
) – aGegl.Matrix3
- Return type:
Check if two matrices are equal.
Returns
True
if the matrices are equal.
- identity()¶
Set the provided self to the identity matrix.
- invert()¶
Inverts self.
- is_affine()¶
- Return type:
Check if a matrix only does an affine transformation.
Returns
True
if the matrix only does an affine transformation.
- is_identity()¶
- Return type:
Check if a matrix is the identity matrix.
Returns
True
if the matrix is the identity matrix.
- is_scale()¶
- Return type:
Check if a matrix only does scaling.
Returns
True
if the matrix only does scaling.
- is_translate()¶
- Return type:
Check if a matrix only does translation.
Returns
True
if the matrix only does trasnlation.
- multiply(right, product)¶
- Parameters:
right (
Gegl.Matrix3
) – aGegl.Matrix3
product (
Gegl.Matrix3
) – aGegl.Matrix3
to store the result in.
Multiples product = self · right
- originate(x, y)¶
-
Shift the origin of the transformation specified by self to (x, y). In other words, calculate the matrix that:
Translates the input by (-x, -y).
Transforms the result using the original self.
Translates the result by (x, y).
- parse_string(string)¶
- Parameters:
string (
str
) – a string describing the matrix (right now a small subset of the transform strings allowed by SVG)
Parse a transofmation matrix from a string.
- round_error()¶
Rounds numerical errors in self to the nearest integer.
- to_string()¶
- Return type:
Serialize a
Gegl.Matrix3
to a string.Returns a freshly allocated string representing that
Gegl.Matrix3
, the returned string should beGLib.free
()’d.