|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.Matrix3
public class Matrix3
3 by 3 matrix utility class
Constructor Summary | |
---|---|
Matrix3()
Creates a matrix initialised to an identity matrix |
|
Matrix3(float aa,
float ab,
float ac,
float ba,
float bb,
float bc,
float ca,
float cb,
float cc)
Sets the values of this matrix |
Method Summary | |
---|---|
float |
get(int x,
int y)
Gets a single coefficient of this matrix |
int |
inverse()
Inverts this matrix in place |
float |
magnitude()
Return the magnitude of this matrix |
Matrix3 |
multiply(Matrix3 m1)
Multiplies m1 by this |
void |
set(float aa,
float ab,
float ac,
float ba,
float bb,
float bc,
float ca,
float cb,
float cc)
Sets the values of this matrix |
void |
set(int x,
int y,
float i)
Sets a coefficient of the matrix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Matrix3()
public Matrix3(float aa, float ab, float ac, float ba, float bb, float bc, float ca, float cb, float cc)
aa
- matrix coefficientab
- matrix coefficientac
- matrix coefficientba
- matrix coefficientbb
- matrix coefficientbc
- matrix coefficientca
- matrix coefficientcb
- matrix coefficientcc
- matrix coefficientMethod Detail |
---|
public void set(float aa, float ab, float ac, float ba, float bb, float bc, float ca, float cb, float cc)
aa
- matrix coefficientab
- matrix coefficientac
- matrix coefficientba
- matrix coefficientbb
- matrix coefficientbc
- matrix coefficientca
- matrix coefficientcb
- matrix coefficientcc
- matrix coefficientpublic float get(int x, int y)
x
- the row to gety
- the col to get
public void set(int x, int y, float i)
x
- the row to sety
- the col to seti
- The value to set (x,y) topublic int inverse()
public float magnitude()
public Matrix3 multiply(Matrix3 m1)
m1
- the matrix to multiply with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |