opale.m2d
Class Matrix2D
java.lang.Object
|
+--opale.m2d.Matrix2D
- public class Matrix2D
- extends java.lang.Object
- Since:
- Opale-2d 0.1
Method Summary |
double[] |
compute(double xf,
double yf)
Calcule les coordonnées du point après multiplication par la matrice. |
boolean |
equals(java.lang.Object obj)
Cette méthode teste si le point est égal à un objet passé en argument. |
double |
get(int i,
int j)
|
double |
getV(int i)
|
void |
set(double[][] m)
|
void |
set(int i,
int j,
double x)
|
void |
setV(int i,
double x)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Matrix2D
public Matrix2D()
set
public void set(double[][] m)
set
public void set(int i,
int j,
double x)
get
public double get(int i,
int j)
setV
public void setV(int i,
double x)
getV
public double getV(int i)
compute
public double[] compute(double xf,
double yf)
- Calcule les coordonnées du point après multiplication par la matrice.
- Parameters:
double
- xf, yf, le point.- Returns:
- double[], le résultat.
- Since:
- Opale-2d 0.11
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Cette méthode teste si le point est égal à un objet passé en argument.
- Overrides:
equals
in class java.lang.Object
- Parameters:
Object
- obj un objet à comparer avec le point.- Returns:
true
si l'objet à comparer est une instance de Point2D et
est égal au point courant; false
sinon.