| Top |
| GeglMatrix3 * | gegl_matrix3_new () |
| void | gegl_matrix3_identity () |
| void | gegl_matrix3_round_error () |
| gboolean | gegl_matrix3_equal () |
| gboolean | gegl_matrix3_is_identity () |
| gboolean | gegl_matrix3_is_scale () |
| gboolean | gegl_matrix3_is_translate () |
| gboolean | gegl_matrix3_is_affine () |
| void | gegl_matrix3_copy_into () |
| GeglMatrix3 * | gegl_matrix3_copy () |
| gdouble | gegl_matrix3_determinant () |
| void | gegl_matrix3_invert () |
| void | gegl_matrix3_multiply () |
| void | gegl_matrix3_originate () |
| void | gegl_matrix3_transform_point () |
| void | gegl_matrix3_parse_string () |
| gchar * | gegl_matrix3_to_string () |
void
gegl_matrix3_identity (GeglMatrix3 *matrix);
Set the provided matrix
to the identity matrix.
void
gegl_matrix3_round_error (GeglMatrix3 *matrix);
Rounds numerical errors in matrix
to the nearest integer.
gboolean gegl_matrix3_equal (const GeglMatrix3 *matrix1,const GeglMatrix3 *matrix2);
Check if two matrices are equal.
Returns TRUE if the matrices are equal.
gboolean
gegl_matrix3_is_identity (const GeglMatrix3 *matrix);
Check if a matrix is the identity matrix.
Returns TRUE if the matrix is the identity matrix.
gboolean
gegl_matrix3_is_scale (const GeglMatrix3 *matrix);
Check if a matrix only does scaling.
Returns TRUE if the matrix only does scaling.
gboolean
gegl_matrix3_is_translate (const GeglMatrix3 *matrix);
Check if a matrix only does translation.
Returns TRUE if the matrix only does trasnlation.
gboolean
gegl_matrix3_is_affine (const GeglMatrix3 *matrix);
Check if a matrix only does an affine transformation.
Returns TRUE if the matrix only does an affine transformation.
void gegl_matrix3_copy_into (GeglMatrix3 *dst,const GeglMatrix3 *src);
Copies the matrix in src
into dst
.
GeglMatrix3 *
gegl_matrix3_copy (const GeglMatrix3 *matrix);
Returns a copy of src
.
gdouble
gegl_matrix3_determinant (const GeglMatrix3 *matrix);
Returns the determinant for the matrix.
void gegl_matrix3_multiply (const GeglMatrix3 *left,const GeglMatrix3 *right,GeglMatrix3 *product);
Multiples product
= left
· right
void gegl_matrix3_originate (GeglMatrix3 *matrix,gdouble x,gdouble y);
Shift the origin of the transformation specified by matrix
to (x
, y
). In other words, calculate the matrix that:
Translates the input by (-x
, -y
).
Transforms the result using the original matrix
.
Translates the result by (x
, y
).
void gegl_matrix3_transform_point (const GeglMatrix3 *matrix,gdouble *x,gdouble *y);
transforms the coordinates provided in x
and y
and changes to the
coordinates gotten when the transformed with the matrix.
void gegl_matrix3_parse_string (GeglMatrix3 *matrix,const gchar *string);
Parse a transofmation matrix from a string.
gchar *
gegl_matrix3_to_string (const GeglMatrix3 *matrix);
Serialize a GeglMatrix3 to a string.
Returns a freshly allocated string representing that GeglMatrix3, the
returned string should be g_free()'d.