cz.cuni.utils.math.extended
Class Line2DExtended

java.lang.Object
  extended by cz.cuni.utils.math.Line2D
      extended by cz.cuni.utils.math.extended.Line2DExtended

public class Line2DExtended
extends Line2D

Against of Line3D has advntage that the same line has the same values of 'direction' and 'point' so it's hashable.


Field Summary
 int hashCode
           
 
Fields inherited from class cz.cuni.utils.math.Line2D
direction, equation, normal, point
 
Constructor Summary
Line2DExtended(Tuple2D iDirection, Tuple2D iPoint)
           
 
Method Summary
protected  int countHashCode()
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
static Line2DExtended line2D(Tuple2D pointA, Tuple2D pointB)
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.utils.math.Line2D
assign, countLine, getCommonPoint, inLine, inLine, recountEquationFromNormal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

hashCode

public final int hashCode
Constructor Detail

Line2DExtended

public Line2DExtended(Tuple2D iDirection,
                      Tuple2D iPoint)
Method Detail

countHashCode

protected int countHashCode()

line2D

public static Line2DExtended line2D(Tuple2D pointA,
                                    Tuple2D pointB)

toString

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object