org.geotools.graph.util.delaunay
Class Triangle

java.lang.Object
  extended byorg.geotools.graph.util.delaunay.Triangle

public class Triangle
extends java.lang.Object

Author:
jfc173

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(java.lang.Object o)
           
 double getArea()
           
 Edge[] getEdges()
           
 Node[] getNodes()
           
 Edge getOppositeEdge(Node n)
           
 Edge getSharedEdge(Triangle t)
           
 Node getThirdNode(Edge e)
           
 int relate(XYNode n)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.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)

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(java.lang.Object o)

toString

public java.lang.String toString()


Copyright © GeoTools. All Rights Reserved.