Class ChessboardCornerGraph.Node

Enclosing class:

public static class ChessboardCornerGraph.Node extends Object
  • Field Details

    • index

      public int index
      Index in the node list
    • corner

      public ChessboardCorner corner
      Reference to the corner this node came from.
    • edges

      public final ChessboardCornerGraph.Node[] edges
      References to other corners. Can only be connected to 4 corners in directions approximated 90 degrees apart.
  • Constructor Details

    • Node

      public Node()
  • Method Details

    • getX

      public double getX()
    • getY

      public double getY()
    • getOrientation

      public double getOrientation()
    • putEdgesIntoList

      public void putEdgesIntoList(List<ChessboardCornerGraph.Node> found)
      Iterates through edges until it encounters edge 'count'
    • rotateEdgesDown

      public void rotateEdgesDown()
      Rotate edges down in the array.
    • reset

      public void reset()
    • countEdges

      public int countEdges()