W
woodBeeProgrammer
is there a conventional way to initialize rectangles to
an invalid value, sort of like NAN for doubles?
an invalid value, sort of like NAN for doubles?
I don't know that this is possible. After all, I don't know that there
is a valid "invalid" value for a Rectangle structure. The structure itself
has all of its members as integers, so you can't really assign NaN to any of
the members. If anything, I would have an encapsulating structure with a
flag indicating whether or not it was initialized.