public class SquareNode
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SquareNode.KdTreeSquareNode |
| Modifier and Type | Field and Description |
|---|---|
georegression.struct.point.Point2D_F64 |
center |
SquareEdge[] |
edges |
int |
graph |
double |
largestSide |
static int |
RESET_GRAPH |
double[] |
sideLengths |
double |
smallestSide |
georegression.struct.shapes.Polygon2D_F64 |
square |
org.ddogleg.struct.GrowQueue_B |
touch |
| Constructor and Description |
|---|
SquareNode() |
| Modifier and Type | Method and Description |
|---|---|
double |
distanceSqCorner(georegression.struct.point.Point2D_F64 p)
Finds the Euclidean distance squared of the closest corner to point p
|
SquareEdge |
findEdge(SquareNode target) |
int |
findEdgeIndex(SquareNode target) |
int |
getNumberOfConnections()
Computes the number of edges attached to this node
|
void |
reset()
Discards previous information
|
double |
smallestSideLength() |
void |
updateArrayLength() |
public static final int RESET_GRAPH
public georegression.struct.shapes.Polygon2D_F64 square
public org.ddogleg.struct.GrowQueue_B touch
public georegression.struct.point.Point2D_F64 center
public double[] sideLengths
public double largestSide
public double smallestSide
public int graph
public SquareEdge[] edges
public double distanceSqCorner(georegression.struct.point.Point2D_F64 p)
public void reset()
public void updateArrayLength()
public int getNumberOfConnections()
public double smallestSideLength()
public SquareEdge findEdge(SquareNode target)
public int findEdgeIndex(SquareNode target)