|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.text.pdf.parser.Matrix
public class Matrix
Keeps all the values of a 3 by 3 matrix and allows you to do some math with matrices.
Field Summary | |
---|---|
static int |
I11
an array position referring to a specific value in the matrix. |
static int |
I12
an array position referring to a specific value in the matrix. |
static int |
I13
an array position referring to a specific value in the matrix. |
static int |
I21
an array position referring to a specific value in the matrix. |
static int |
I22
an array position referring to a specific value in the matrix. |
static int |
I23
an array position referring to a specific value in the matrix. |
static int |
I31
an array position referring to a specific value in the matrix. |
static int |
I32
an array position referring to a specific value in the matrix. |
static int |
I33
an array position referring to a specific value in the matrix. |
Constructor Summary | |
---|---|
Matrix()
constructs a new Matrix with identity. |
|
Matrix(float tx,
float ty)
Constructs a matrix that represents translation |
|
Matrix(float a,
float b,
float c,
float d,
float e,
float f)
Creates a Matrix with 6 specified entries |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Checks equality of matrices. |
float |
get(int index)
Gets a specific value inside the matrix. |
int |
hashCode()
Generates a hash code for this object. |
Matrix |
multiply(Matrix by)
multiplies this matrix by 'b' and returns the result See http://en.wikipedia.org/wiki/Matrix_multiplication |
java.lang.String |
toString()
Generates a String representating of the matrix. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int I11
public static final int I12
public static final int I13
public static final int I21
public static final int I22
public static final int I23
public static final int I31
public static final int I32
public static final int I33
Constructor Detail |
---|
public Matrix()
public Matrix(float tx, float ty)
tx
- ty
- public Matrix(float a, float b, float c, float d, float e, float f)
a
- b
- c
- d
- e
- f
- Method Detail |
---|
public float get(int index)
index
- an array index corresponding with a value inside the matrix
public Matrix multiply(Matrix by)
by
- The matrix to multiply by
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the other Matrix that needs to be compared with this matrix.
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |