Package com.takenoko.layers.irrigation
Class EdgePosition
java.lang.Object
com.takenoko.layers.irrigation.EdgePosition
This record represents an irrigation channel Position
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEdgePosition
(@NotNull PositionVector leftTilePosition, @NotNull PositionVector rightTilePosition) EdgePosition
(Set<PositionVector> positions) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
static List<EdgePosition>
getEdgePositions
(PositionVector positionVector) Return the list of all the neighbours of the irrigation channel position A neighbour is a position that is connected to the irrigation channel positionint
hashCode()
toString()
-
Field Details
-
positions
-
-
Constructor Details
-
EdgePosition
public EdgePosition(@NotNull @NotNull PositionVector leftTilePosition, @NotNull @NotNull PositionVector rightTilePosition) -
EdgePosition
-
-
Method Details
-
getLeftTilePosition
-
getRightTilePosition
-
copy
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-