well, I wanted to ask what's the difference between
if (xtr) {
y = y - x % 2 + (yt > (this->hexagon_height * 0.5f));
}
and
y = y - (x % 2 + (yt > (this->hexagon_height * 0.5f))) * xtr;
whereas xtr is a boolean. The if statement seems to produce the right result while the second statement does not.