Closed edutools-service closed 12 months ago
Hello,
According to the variables, the proposed solution seems legit:
const float NORTH_BORDER = 0.0f; const float SOUTH_BORDER = 600.0f; const float WEST_BORDER = 0.0f; const float EAST_BORDER = 800.0f;
Could you please elaborate on your suggestion?
@DaniilBogdanovJB
The borders constanst definitions are fine. The problem was with the example in one of the test task descriptions. Anyway, I just fixed that.
For example, the check and adjustment against the east border should look like this:
if (result.x - RADIUS < WEST_BORDER) { result.x = WEST_BORDER + RADIUS; }
Actually it should be the check and adjustment against the west border.