cz.cuni.utils.math.extended
Class Line3DExtended

java.lang.Object
  extended by cz.cuni.utils.math.Line3D
      extended by cz.cuni.utils.math.extended.Line3DExtended

public class Line3DExtended
extends Line3D

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.Line3D
direction, point
 
Constructor Summary
Line3DExtended(Line3D line)
           
Line3DExtended(Tuple3D iDirection, Tuple3D iPoint)
           
 
Method Summary
protected  int countHashCode()
           
 boolean equals(Line3DExtended line)
           
 int hashCode()
           
protected  void initLine()
          Called by constructors only!
static Line3DExtended line3D(Tuple3D pointA, Tuple3D pointB)
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.utils.math.Line3D
assign, countLine, equals, equals, getCommonPoint, inLine, inLine
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

hashCode

public final int hashCode
Constructor Detail

Line3DExtended

public Line3DExtended(Line3D line)

Line3DExtended

public Line3DExtended(Tuple3D iDirection,
                      Tuple3D iPoint)
Method Detail

initLine

protected void initLine()
Called by constructors only!


countHashCode

protected int countHashCode()

equals

public boolean equals(Line3DExtended line)
Overrides:
equals in class Line3D

line3D

public static Line3DExtended line3D(Tuple3D pointA,
                                    Tuple3D pointB)

toString

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

hashCode

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