org.jcae.mesh.amibe.metrics
Class Matrix2D

java.lang.Object
  extended by org.jcae.mesh.amibe.metrics.Matrix2D

public class Matrix2D
extends java.lang.Object

General 2D matrix.


Field Summary
 double[][] data
           
 
Constructor Summary
Matrix2D()
          Create a Matrix2D instance and set it to the identity matrix.
Matrix2D(double Axx, double Axy, double Ayx, double Ayy)
          Create a Matrix2D instance with the given coefficients.
 
Method Summary
 double det()
          Return the determinant of this matrix.
protected  Matrix2D intersection(Matrix2D B)
          Computes the intersection of 2 metrics.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

public double[][] data
Constructor Detail

Matrix2D

public Matrix2D()
Create a Matrix2D instance and set it to the identity matrix.


Matrix2D

public Matrix2D(double Axx,
                double Axy,
                double Ayx,
                double Ayy)
Create a Matrix2D instance with the given coefficients.

Parameters:
Axx - Axx coefficient
Axy - Axy coefficient
Ayx - Ayx coefficient
Ayy - Ayy coefficient
Method Detail

det

public double det()
Return the determinant of this matrix.

Returns:
the determinant of this matrix.

intersection

protected Matrix2D intersection(Matrix2D B)
Computes the intersection of 2 metrics.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object