The has_even_y function already includes a check for infinity points, so there is no need to check for them separately after calling the function. While the program would still be correct if we remove this line, I prefer to keep it for the sake of readability.
The
has_even_y
function already includes a check for infinity points, so there is no need to check for them separately after calling the function. While the program would still be correct if we remove this line, I prefer to keep it for the sake of readability.