Matrix3
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gimp_matrix3_get_type ()" ) ]
[ Compact ]
public class Matrix3
Content:
Methods:
- public void affine (double a, double b, double c, double d, double e, double f)
Applies the affine transformation given by six values to
this.
- public double determinant ()
Calculates the determinant of the given matrix.
- public bool equal (Matrix3 matrix2)
Checks if two matrices are equal.
- public void identity ()
Sets the matrix to the identity matrix.
- public void invert ()
Inverts the given matrix.
- public bool is_affine ()
Checks if the given matrix defines an affine transformation.
- public bool is_diagonal ()
Checks if the given matrix is diagonal.
- public bool is_identity ()
Checks if the given matrix is the identity matrix.
- public bool is_simple ()
Checks if we'll need to interpolate when applying this matrix as a
transformation.
- public void mult (Matrix3 right)
Multiplies two matrices and puts the result into the second one.
- public void rotate (double theta)
Rotates the matrix by theta degrees.
- public void scale (double x, double y)
Scales the matrix by x and y
- public void transform_point (double x, double y, double newx, double newy)
Transforms a point in 2D as specified by the transformation matrix.
- public void translate (double x, double y)
Translates the matrix by x and y.
- public void xshear (double amount)
Shears the matrix in the X direction.
- public void yshear (double amount)
Shears the matrix in the Y direction.
Fields: