|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.arbaro.transformation.Matrix
public final class Matrix
A 3x3 matrix class
Constructor Summary | |
---|---|
Matrix()
|
|
Matrix(double xx,
double xy,
double xz,
double yx,
double yy,
double yz,
double zx,
double zy,
double zz)
|
Method Summary | |
---|---|
Matrix |
add(Matrix M)
Adds the matrix to another |
Vector |
col(int c)
|
Matrix |
div(double factor)
Divids the matrix by a value |
double |
get(int r,
int c)
|
Matrix |
mul(double factor)
|
Matrix |
prod(Matrix M)
|
Vector |
prod(Vector v)
Multiplies the matrix with a vector |
Vector |
row(int r)
|
void |
set(int r,
int c,
double value)
|
Matrix |
sub(Matrix M)
Substracts a matrix |
java.lang.String |
toString()
|
Matrix |
transpose()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Matrix()
public Matrix(double xx, double xy, double xz, double yx, double yy, double yz, double zx, double zy, double zz)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public Vector row(int r)
public Vector col(int c)
public double get(int r, int c)
public void set(int r, int c, double value)
public Matrix transpose()
public Matrix mul(double factor)
public Matrix prod(Matrix M)
public Matrix add(Matrix M)
M
- the matrix to be added
public Vector prod(Vector v)
v
- the vector
public Matrix div(double factor)
factor
- the divisor
public Matrix sub(Matrix M)
M
- the matrix to be subtracted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |