Class TransformationMatrix
java.lang.Object
|
+--TransformationMatrix
- public class TransformationMatrix
- extends java.lang.Object
This class is used to warp the map
it stores with it the transformation matrix associated with a given triangle
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
EPSILON
public static final double EPSILON
Trans
public double[][] Trans
degenerate
public boolean degenerate
TransformationMatrix
public TransformationMatrix(Triangle P,
Triangle Q)
triangle_transform
public boolean triangle_transform(Triangle P,
Triangle Q)
- ComPute the transformation matrix from triangle P.
to triangle Q. Return TRUE if the transformation is Possible,
FALSE if triangle P is degenerate, or segment (Q1, Q2) is degenerate.
Entry:
Q.1, Q.2, Q.3: vertices for triangle Q.
P.1, P.2, P.3: vertices for triangle P.
Exit:
Trans: resulting transformation matrix.
print
public void print()
FEQUAL
public boolean FEQUAL(double V1,
double V2)
convert
public void convert(java.awt.geom.Point2D.Double point)