org.geotools.graph.util.delaunay
Class Triangle

Object
  extended by Triangle

public class Triangle
extends Object

Author:
jfc173
Module:
modules/extension/graph (gt-graph.jar)

Field Summary
static int INSIDE
           
static int ON_EDGE
           
static int OUTSIDE
           
 
Constructor Summary
Triangle(Edge e1, Edge e2, Edge e3)
          Creates a new instance of Triangle
 
Method Summary
 boolean containsEdge(Edge e)
           
 boolean equals(Object o)
           
 double getArea()
           
 Edge getBoundaryEdge(XYNode n)
           
 Edge[] getEdges()
           
 Node[] getNodes()
           
 Edge getOppositeEdge(Node n)
           
 Edge getSharedEdge(Triangle t)
           
 Node getThirdNode(Edge e)
           
 int relate(XYNode n)
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OUTSIDE

public static final int OUTSIDE
See Also:
Constant Field Values

INSIDE

public static final int INSIDE
See Also:
Constant Field Values

ON_EDGE

public static final int ON_EDGE
See Also:
Constant Field Values
Constructor Detail

Triangle

public Triangle(Edge e1,
                Edge e2,
                Edge e3)
Creates a new instance of Triangle

Method Detail

relate

public int relate(XYNode n)

getBoundaryEdge

public Edge getBoundaryEdge(XYNode n)

getThirdNode

public Node getThirdNode(Edge e)

getOppositeEdge

public Edge getOppositeEdge(Node n)

getSharedEdge

public Edge getSharedEdge(Triangle t)

getEdges

public Edge[] getEdges()

getNodes

public Node[] getNodes()

getArea

public double getArea()

containsEdge

public boolean containsEdge(Edge e)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1996-2009 Geotools. All Rights Reserved.