ProGAL.geom3d.complex
Class CEdge
java.lang.Object
ProGAL.geom3d.LineSegment
ProGAL.geom3d.complex.CEdge
- All Implemented Interfaces:
- Shape, Simplex
public class CEdge
- extends LineSegment
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 |
CEdge
public CEdge(CVertex p0,
CVertex p1)
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)