Matrix3
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gegl_matrix3_get_type ()" ) ]
[ Compact ]
public class Matrix3
Content:
Creation methods:
Methods:
- public Matrix3 copy ()
Returns a copy of src
.
- public void copy_into (Matrix3 src)
Copies the matrix in src
into this
.
- public double determinant ()
Returns the determinant for the matrix.
- public bool equal (Matrix3 matrix2)
Check if two matrices are equal.
- public void identity ()
Set the provided this to the identity
matrix.
- public void invert ()
Inverts this.
- public bool is_affine ()
Check if a matrix only does an affine transformation.
- public bool is_identity ()
Check if a matrix is the identity matrix.
- public bool is_scale ()
Check if a matrix only does scaling.
- public bool is_translate ()
Check if a matrix only does translation.
- public void multiply (Matrix3 right, Matrix3 product)
Multiples product
= this ·
right
- public void originate (double x, double y)
Shift the origin of the transformation specified by
this to (x
, y
).
- public void parse_string (string string)
Parse a transofmation matrix from a string.
- public void round_error ()
Rounds numerical errors in this to the
nearest integer.
- public string to_string ()
Serialize a Matrix3 to a string.
- public void transform_point (double x, double y)
transforms the coordinates provided in x
and y
and
changes to the coordinates gotten when the transformed with the matrix.
Fields: