Class EdgePosition

java.lang.Object
com.takenoko.layers.irrigation.EdgePosition

public class EdgePosition extends Object
This record represents an irrigation channel Position
  • Field Details

  • Constructor Details

  • Method Details

    • getLeftTilePosition

      public PositionVector getLeftTilePosition()
    • getRightTilePosition

      public PositionVector getRightTilePosition()
    • copy

      public EdgePosition copy()
    • getNeighbours

      public List<EdgePosition> getNeighbours()
      Return the list of all the neighbours of the irrigation channel position A neighbour is a position that is connected to the irrigation channel position
      Returns:
      the list of all the neighbours of the irrigation channel position
    • getEdgePositions

      public static List<EdgePosition> getEdgePositions(PositionVector positionVector)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object