get_next_node#

ripplemapper.contour.get_next_node(node: tuple, dx: int, dy: int) tuple[source]#

Get the next node coordinates by moving in the given direction.

Parameters:
  • node (tuple) – Current node coordinates.

  • dx (int) – Change in x-coordinate.

  • dy (int) – Change in y-coordinate.

Returns:

Next node coordinates, or None if out of bounds.

Return type:

tuple