|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.physica.TriangulationAlgorithm
org.starhope.appius.physica.QuadraticAlgorithm
class QuadraticAlgorithm
QuadraticAlgorithm class. O(n^2) algorithm.
| Field Summary | |
|---|---|
(package private) static String |
algoName
WRITEME: Document this brpocock@star-hope.org |
(package private) Circle |
bC
WRITEME: Document this brpocock@star-hope.org |
(package private) int |
bP
WRITEME: Document this brpocock@star-hope.org |
(package private) int |
nFaces
WRITEME: Document this brpocock@star-hope.org |
(package private) int |
s
WRITEME: Document this brpocock@star-hope.org |
(package private) int |
t
WRITEME: Document this brpocock@star-hope.org |
(package private) int |
u
WRITEME: Document this brpocock@star-hope.org |
| Fields inherited from class org.starhope.appius.physica.TriangulationAlgorithm |
|---|
algName, edgeState, insideState, nStates, pointState, state, triangleState, triangulationState |
| Constructor Summary | |
|---|---|
QuadraticAlgorithm(Triangulation t1,
int nPoints)
WRITEME: Document this constructor brpocock@star-hope.org |
|
| Method Summary | |
|---|---|
void |
completeFacet(int eIeI2,
Triangulation tri0,
int numberOfFaces)
Complete a facet by looking for the circle free point to the left of the edge "e_i". |
private void |
findBestPointOnLeftOfEdge(Triangulation tri0,
Point2D.Double[] p)
Find best point on left of edge. |
Point2D |
findClosestNeighbours(Point2D.Double[] p,
int nPoints)
Find the two closest points. |
void |
reset()
WRITEME: Document this method brpocock@star-hope.org |
void |
triangulate(Triangulation tri)
WRITEME: Document this method brpocock@star-hope.org |
| Methods inherited from class org.starhope.appius.physica.TriangulationAlgorithm |
|---|
nextStep, setAlgorithmState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final String algoName
Circle bC
int bP
int nFaces
int s
int t
int u
| Constructor Detail |
|---|
public QuadraticAlgorithm(Triangulation t1,
int nPoints)
t1 - WRITEMEnPoints - WRITEME| Method Detail |
|---|
public void completeFacet(int eIeI2,
Triangulation tri0,
int numberOfFaces)
eIeI2 - WRITEMEtri0 - WRITEMEnumberOfFaces - WRITEME
private void findBestPointOnLeftOfEdge(Triangulation tri0,
Point2D.Double[] p)
tri0 - WRITEMEp - WRITEME
public Point2D findClosestNeighbours(Point2D.Double[] p,
int nPoints)
p - WRITEMEnPoints - WRITEME
public void reset()
TriangulationAlgorithm
reset in class TriangulationAlgorithmTriangulationAlgorithm.reset()public void triangulate(Triangulation tri)
TriangulationAlgorithm
triangulate in class TriangulationAlgorithmtri - WRITEMETriangulationAlgorithm.triangulate(org.starhope.appius.physica.Triangulation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||