Package repast.simphony.space.delaunay
Class TriangulationPoint
java.lang.Object
repast.simphony.space.delaunay.TriangulationPoint
This adds geometric primitives to ILocations to support
 DelaunayTriangulation. These primitives are defined in guibas and stolfi.
- Version:
- $revision$
- Author:
- Howe
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionTriangulationPoint(double x, double y, Object contents) Construct a new TriangulationPoint using an x and a y cooridnate.
- 
Method SummaryModifier and TypeMethodDescriptionConstruct a new TriangulationPoint using an ILocation object.doublegetX()doublegetY()booleanTests whether this point is inside the circumcircle of the other three points.booleanIs this point to the left of the supplied Edge.booleanIs this point on the supplied edge?booleanIs this point to the right of the supplied Edge.voidsetX(int x) voidsetY(int y) 
- 
Field Details- 
contents
 
- 
- 
Constructor Details- 
TriangulationPointConstruct a new TriangulationPoint using an x and a y cooridnate.- Parameters:
- x- The x coordinate of the point.
- y- The y coordinate of the point.
 
 
- 
- 
Method Details- 
getContentsConstruct a new TriangulationPoint using an ILocation object.- Parameters:
- loc- The location to be triangulated.
 
- 
isOnIs this point on the supplied edge?- Parameters:
- e- The edge to test.
- Returns:
- true if this point is on the edge.
 
- 
isRightOfIs this point to the right of the supplied Edge.- Parameters:
- e- The edge to test.
- Returns:
- true if this point is right of the edge.
 
- 
isLeftOfIs this point to the left of the supplied Edge.- Parameters:
- e- The edge to test.
- Returns:
- true if this point is left of the edge.
 
- 
isInCircleTests whether this point is inside the circumcircle of the other three points.- Parameters:
- p1- A point in the circle
- p2- A point in the circle
- p3- A point in the circle.
- Returns:
- true if this point lies incide the circumcircle of the other three points.
 
- 
getXpublic double getX()- Returns:
- Returns the x.
 
- 
setXpublic void setX(int x) - Parameters:
- x- The x to set.
 
- 
getYpublic double getY()- Returns:
- Returns the y.
 
- 
setYpublic void setY(int y) - Parameters:
- y- The y to set.
 
 
-