Package com.lowagie.text.pdf.parser
Class Matrix
java.lang.Object
com.lowagie.text.pdf.parser.Matrix
Keeps all the values of a 3 by 3 matrix
and allows you to do some math with matrices.
- Since:
- 2.1.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intan array position referring to a specific value in the matrix.static final intan array position referring to a specific value in the matrix.static final intan array position referring to a specific value in the matrix.static final intan array position referring to a specific value in the matrix.static final intan array position referring to a specific value in the matrix.static final intan array position referring to a specific value in the matrix.static final intan array position referring to a specific value in the matrix.static final intan array position referring to a specific value in the matrix.static final intan array position referring to a specific value in the matrix. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks equality of matrices.floatget(int index) Gets a specific value inside the matrix.inthashCode()Generates a hash code for this object.multiplies this matrix by 'b' and returns the result See http://en.wikipedia.org/wiki/Matrix_multiplicationtoString()Generates a String representating of the matrix.
-
Field Details
-
I11
public static final int I11an array position referring to a specific value in the matrix.- See Also:
-
I12
public static final int I12an array position referring to a specific value in the matrix.- See Also:
-
I13
public static final int I13an array position referring to a specific value in the matrix.- See Also:
-
I21
public static final int I21an array position referring to a specific value in the matrix.- See Also:
-
I22
public static final int I22an array position referring to a specific value in the matrix.- See Also:
-
I23
public static final int I23an array position referring to a specific value in the matrix.- See Also:
-
I31
public static final int I31an array position referring to a specific value in the matrix.- See Also:
-
I32
public static final int I32an array position referring to a specific value in the matrix.- See Also:
-
I33
public static final int I33an array position referring to a specific value in the matrix.- See Also:
-
-
Constructor Details
-
Matrix
public Matrix()constructs a new Matrix with identity. -
Matrix
public Matrix(float tx, float ty) Constructs a matrix that represents translation- Parameters:
tx-ty-
-
Matrix
public Matrix(float a, float b, float c, float d, float e, float f) Creates a Matrix with 6 specified entries- Parameters:
a-b-c-d-e-f-
-
-
Method Details
-
get
public float get(int index) Gets a specific value inside the matrix.- Parameters:
index- an array index corresponding with a value inside the matrix- Returns:
- the value at that specific position.
-
multiply
multiplies this matrix by 'b' and returns the result See http://en.wikipedia.org/wiki/Matrix_multiplication- Parameters:
by- The matrix to multiply by- Returns:
- the resulting matrix
-
equals
Checks equality of matrices. -
hashCode
public int hashCode()Generates a hash code for this object. -
toString
Generates a String representating of the matrix.
-