org.geotools.geometry.iso.util.elem2D
Class Triangle2D
java.lang.Object
org.geotools.geometry.iso.util.elem2D.Simplex2D
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
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 |
Triangle2D
public Triangle2D(Node2D p0,
Node2D p1,
Node2D p2)
- Parameters:
startPoint
- p2
- endPoint
-
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.