areCellsRelated

fun Dimension.areCellsRelated(row1: Int, col1: Int, row2: Int, col2: Int): Boolean

Checks if two cells are related (in the same row, column, or box) based on their row and column indices.

Throws an IllegalArgumentException with a specific message if any of the row or column indices are invalid.