| Top |
| GeglMatrix3 * | gegl_matrix3_new () |
| void | gegl_matrix3_identity () |
| 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.
gboolean gegl_matrix3_equal (GeglMatrix3 *matrix1,GeglMatrix3 *matrix2);
Check if two matrices are equal.
Returns TRUE if the matrices are equal.
gboolean
gegl_matrix3_is_identity (GeglMatrix3 *matrix);
Check if a matrix is the identity matrix.
Returns TRUE if the matrix is the identity matrix.
gboolean
gegl_matrix3_is_scale (GeglMatrix3 *matrix);
Check if a matrix only does scaling.
Returns TRUE if the matrix only does scaling.
gboolean
gegl_matrix3_is_translate (GeglMatrix3 *matrix);
Check if a matrix only does translation.
Returns TRUE if the matrix only does trasnlation.
gboolean
gegl_matrix3_is_affine (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,GeglMatrix3 *src);
Copies the matrix in src
into dst
.
gdouble
gegl_matrix3_determinant (GeglMatrix3 *matrix);
Returns the determinant for the matrix.
void gegl_matrix3_multiply (GeglMatrix3 *left,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 (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 (GeglMatrix3 *matrix);
Serialize a GeglMatrix3 to a string.
Returns a freshly allocated string representing that GeglMatrix3, the
returned string should be g_free()'d.