org.simtk.geometry3d
Class MathMatrixClass
java.lang.Object
org.simtk.geometry3d.MathMatrixClass
- All Implemented Interfaces:
- MathMatrix, MutableMathMatrix
- Direct Known Subclasses:
- HomogeneousTransformClass, JamaMatrix, Matrix3DClass
public class MathMatrixClass
- extends java.lang.Object
- implements MutableMathMatrix
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MathMatrixClass
public MathMatrixClass(int m,
int n)
MathMatrixClass
public MathMatrixClass(int m,
int n,
double d)
MathMatrixClass
public MathMatrixClass(MathMatrix m)
get
public double get(int i,
int j)
- Specified by:
get
in interface MathMatrix
set
public void set(int i,
int j,
double d)
- Specified by:
set
in interface MutableMathMatrix
copy
public void copy(MathMatrix m)
- Specified by:
copy
in interface MutableMathMatrix
setRow
public void setRow(int i,
MathVector v)
- Specified by:
setRow
in interface MutableMathMatrix
setColumn
public void setColumn(int j,
MathVector v)
- Specified by:
setColumn
in interface MutableMathMatrix
getColumn
public MathVector getColumn(int j)
- Specified by:
getColumn
in interface MathMatrix
getRow
public MathVector getRow(int i)
- Specified by:
getRow
in interface MathMatrix
transpose
public MathMatrix transpose()
- Specified by:
transpose
in interface MathMatrix
plusEquals
public void plusEquals(MathMatrix m2)
- Specified by:
plusEquals
in interface MutableMathMatrix
minusEquals
public void minusEquals(MathMatrix m2)
- Specified by:
minusEquals
in interface MutableMathMatrix
timesEquals
public void timesEquals(double d)
- Specified by:
timesEquals
in interface MutableMathMatrix
timesEquals
public void timesEquals(MathMatrix m)
- Specified by:
timesEquals
in interface MutableMathMatrix
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interface MathMatrix
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interface MathMatrix
plus
public MathMatrix plus(MathMatrix m2)
- Specified by:
plus
in interface MathMatrix
minus
public MathMatrix minus(MathMatrix m2)
- Specified by:
minus
in interface MathMatrix
times
public MathMatrix times(MathMatrix m2)
- Specified by:
times
in interface MathMatrix
times
public MathVector times(MathVector v)
- Specified by:
times
in interface MathMatrix
times
public MathMatrix times(double d)
- Specified by:
times
in interface MathMatrix
trace
public double trace()
- Specified by:
trace
in interface MathMatrix
getDiagonal
public MathVector getDiagonal()
- Specified by:
getDiagonal
in interface MathMatrix
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object