ProGAL.geom3d.complex
Class CEdge

java.lang.Object
  extended by ProGAL.geom3d.LineSegment
      extended by ProGAL.geom3d.complex.CEdge
All Implemented Interfaces:
Shape, Simplex

public class CEdge
extends LineSegment


Constructor Summary
CEdge(CVertex p0, CVertex p1)
           
 
Method Summary
 void addTriangle(CTriangle tri)
           
 boolean containsPoint(Point p)
           
 boolean equals(java.lang.Object o)
          Returns true iff the argument is a line-segment and equals this.
 java.util.List<CTriangle> getAdjacentTriangles()
           
 CVertex getPoint(int i)
          TODO: Comment and test
 int hashCode()
           
 CVertex opposite(CVertex v)
           
 
Methods inherited from class ProGAL.geom3d.LineSegment
clone, equals, getA, getAToB, getB, getCenter, getClosestPoint, getDimension, getDistance, getLength, getLengthSquared, getMidPoint, getSquaredDistance, setA, setB, toConsole, toConsole, toScene, toString, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CEdge

public CEdge(CVertex p0,
             CVertex p1)
Method Detail

addTriangle

public void addTriangle(CTriangle tri)

getAdjacentTriangles

public java.util.List<CTriangle> getAdjacentTriangles()

getPoint

public CVertex getPoint(int i)
Description copied from class: LineSegment
TODO: Comment and test

Specified by:
getPoint in interface Simplex
Overrides:
getPoint in class LineSegment

containsPoint

public boolean containsPoint(Point p)

equals

public boolean equals(java.lang.Object o)
Description copied from class: LineSegment
Returns true iff the argument is a line-segment and equals this.

Overrides:
equals in class LineSegment

hashCode

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

opposite

public CVertex opposite(CVertex v)