public class SquareGraph
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.ddogleg.struct.RecycleManager<SquareEdge> |
edgeManager |
| Constructor and Description |
|---|
SquareGraph() |
| Modifier and Type | Method and Description |
|---|---|
double |
acuteAngle(SquareNode a,
int sideA,
SquareNode b,
int sideB)
Returns an angle between 0 and PI/4 which describes the difference in slope
between the two sides
|
boolean |
almostParallel(SquareNode a,
int sideA,
SquareNode b,
int sideB)
Checks to see if the two sides are almost parallel to each other by looking at their acute
angle.
|
void |
checkConnect(SquareNode a,
int indexA,
SquareNode b,
int indexB,
double distance)
Checks to see if the two nodes can be connected.
|
void |
computeNodeInfo(SquareNode n) |
void |
detachEdge(SquareEdge edge)
Removes the edge from the two nodes and recycles the data structure
|
int |
findSideIntersect(SquareNode n,
georegression.struct.line.LineSegment2D_F64 line,
georegression.struct.point.Point2D_F64 intersection,
georegression.struct.line.LineSegment2D_F64 storage)
Finds the side which intersects the line on the shape.
|
org.ddogleg.struct.RecycleManager<SquareEdge> |
getEdgeManager() |
double |
getParallelThreshold() |
void |
setParallelThreshold(double parallelThreshold) |
protected org.ddogleg.struct.RecycleManager<SquareEdge> edgeManager
public void computeNodeInfo(SquareNode n)
public void detachEdge(SquareEdge edge)
public int findSideIntersect(SquareNode n, georegression.struct.line.LineSegment2D_F64 line, georegression.struct.point.Point2D_F64 intersection, georegression.struct.line.LineSegment2D_F64 storage)
public void checkConnect(SquareNode a, int indexA, SquareNode b, int indexB, double distance)
public boolean almostParallel(SquareNode a, int sideA, SquareNode b, int sideB)
public double acuteAngle(SquareNode a, int sideA, SquareNode b, int sideB)
public org.ddogleg.struct.RecycleManager<SquareEdge> getEdgeManager()
public double getParallelThreshold()
public void setParallelThreshold(double parallelThreshold)