Class Matrix

java.lang.Object
  |
  +--Matrix

public class Matrix
extends java.lang.Object

Matrix represent and provides operations on 4 by 4 matrices.


Constructor Summary
Matrix()
           
Matrix(Matrix mm)
           
 
Method Summary
 double getValue(int x, int y)
           
 void multiplyMatrix(Matrix m1, Matrix m2)
           
 void setToIdentity()
           
 void setToScaling(Vector v)
           
 void setToTranslation(Vector v)
           
 void setToXRotation(double a)
           
 void setToYRotation(double a)
           
 void setToZRotation(double a)
           
 void setValue(int x, int y, double v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Matrix

public Matrix()

Matrix

public Matrix(Matrix mm)
Method Detail

setToIdentity

public void setToIdentity()

multiplyMatrix

public void multiplyMatrix(Matrix m1,
                           Matrix m2)

setToTranslation

public void setToTranslation(Vector v)

setToScaling

public void setToScaling(Vector v)

setToXRotation

public void setToXRotation(double a)

setToYRotation

public void setToYRotation(double a)

setToZRotation

public void setToZRotation(double a)

setValue

public void setValue(int x,
                     int y,
                     double v)

getValue

public double getValue(int x,
                       int y)