Implemented Paths::isSameDiagonal().