isValid

open override fun isValid(x: Int, y: Int): Boolean

Determine whether a given coordinate is valid for the matrix.