Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int x_steps = std::min(max_x - min_x, 250);
- int x_step_size = std::max(1, int(std::ceil((max_x - min_x) / x_steps)));
- int y_steps = int(std::ceil(250 * 250 / x_steps));
- int y_step_size = std::max(1, int(std::ceil((max_y - min_y) / y_steps)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement