maillage
Class Triangle

java.lang.Object
  extended by maillage.Triangle

public class Triangle
extends java.lang.Object

Class representing a triangle


Constructor Summary
Triangle(Cellule p, Cellule q, Cellule r)
          Constructor of a triangle definied by 3 sommets
 
Method Summary
 void addVoisin(Triangle tr)
           
 boolean aDesVoisins()
           
 Point centreCercleCirconscrit()
           
 boolean contains(Cellule P)
          Checks if the point specified as argument is contained in the triangle
 Cellule dernierSommet(Cellule c1, Cellule c2)
           
 boolean estVoisin(Triangle tr)
           
 java.util.Vector<Cellule> getVertex()
          Returns the vextex list of the triangle
 java.util.Vector<Triangle> getVoisins()
           
 boolean isIllegal(Cellule cK)
           
 boolean isVertex(Cellule p)
           
 void legalizeEdge(Triangle trJKI, Cellule cJ, Cellule cI, java.util.Vector<Triangle> listeTriangle, int e)
          Legalise d'une arête
 void print()
           
 double rayonCercleCirconscrit(Point p)
           
 void removeVoisin(Triangle tr)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Triangle

public Triangle(Cellule p,
                Cellule q,
                Cellule r)
Constructor of a triangle definied by 3 sommets

Parameters:
P - Sommet #1
Q - Sommet #2
R - Sommet #3
Method Detail

toString

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

print

public void print()

getVertex

public java.util.Vector<Cellule> getVertex()
Returns the vextex list of the triangle

Returns:
Vertex list

isVertex

public boolean isVertex(Cellule p)

estVoisin

public boolean estVoisin(Triangle tr)

getVoisins

public java.util.Vector<Triangle> getVoisins()

addVoisin

public void addVoisin(Triangle tr)

removeVoisin

public void removeVoisin(Triangle tr)

aDesVoisins

public boolean aDesVoisins()

dernierSommet

public Cellule dernierSommet(Cellule c1,
                             Cellule c2)

centreCercleCirconscrit

public Point centreCercleCirconscrit()

rayonCercleCirconscrit

public double rayonCercleCirconscrit(Point p)

isIllegal

public boolean isIllegal(Cellule cK)

legalizeEdge

public void legalizeEdge(Triangle trJKI,
                         Cellule cJ,
                         Cellule cI,
                         java.util.Vector<Triangle> listeTriangle,
                         int e)
Legalise d'une arête

Parameters:
trJKI - triangle adjacent
cJ - cellule 1 de l'arête commune
cI - cellule 2 de l'arête commune

contains

public boolean contains(Cellule P)
Checks if the point specified as argument is contained in the triangle

Parameters:
P - the point to be checked
Returns:
answer