org.geotools.geometry.iso.util.elem2D
Class Triangle2D

java.lang.Object
  extended by org.geotools.geometry.iso.util.elem2D.Simplex2D
      extended by org.geotools.geometry.iso.util.elem2D.Triangle2D

public class Triangle2D
extends Simplex2D

Author:
roehrig TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
 
Fields inherited from class org.geotools.geometry.iso.util.elem2D.Simplex2D
id, neighbour, object, point
 
Constructor Summary
Triangle2D(Node2D p0, Node2D p1, Node2D p2)
           
 
Method Summary
 boolean containsPoint(java.awt.geom.Point2D p)
           
 boolean containsPoints(java.awt.geom.Point2D[] p)
           
 double getArea()
           
 double getQuality()
           
 double getRadiusI()
           
 double getRadiusU()
           
 int getSideNr(java.awt.geom.Point2D p0, java.awt.geom.Point2D p1)
           
 boolean intersects(Triangle2D other)
          return true if the interiors of both simplices intersect valid only for counterclockwise simplices
 int n()
           
 void setSide(int s, Edge2D e)
           
 void setSide(int s, Triangle2D f)
           
 int sideBits(int s)
           
 
Methods inherited from class org.geotools.geometry.iso.util.elem2D.Simplex2D
getAllEdgesOnFace, getAllPointsOnFace, getAllSimpliciesOnSimplex, getCentroid, getNeighbourEdge, getNeighbours, getNeighbourSimplex, getNextPoint, getObject, getOrientation, getOrientation, getOrientation, getOrientation, getPoint, getPointFromSide, getPoints, getRectangle, getSide, getSide, getSide, getSides, getSize, getSizeSq, hasEqualPoint, hasID, hasPoint, linkEdge, linkEdge, linkSimplex, linkSimplex, setObject, setRectangle, swapSide, unlinkEdge, unlinkEdge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Triangle2D

public Triangle2D(Node2D p0,
                  Node2D p1,
                  Node2D p2)
Parameters:
startPoint -
p2 -
endPoint -
Method Detail

n

public int n()
Specified by:
n in class Simplex2D

sideBits

public int sideBits(int s)
Specified by:
sideBits in class Simplex2D

getArea

public double getArea()

setSide

public void setSide(int s,
                    Edge2D e)

setSide

public void setSide(int s,
                    Triangle2D f)

getSideNr

public int getSideNr(java.awt.geom.Point2D p0,
                     java.awt.geom.Point2D p1)

getRadiusU

public double getRadiusU()

getRadiusI

public double getRadiusI()

getQuality

public double getQuality()

containsPoints

public boolean containsPoints(java.awt.geom.Point2D[] p)

containsPoint

public boolean containsPoint(java.awt.geom.Point2D p)
Returns:

intersects

public boolean intersects(Triangle2D other)
return true if the interiors of both simplices intersect valid only for counterclockwise simplices



Copyright © 1996-2010 Geotools. All Rights Reserved.