Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. int x_steps = std::min(max_x - min_x, 250);
  2. int x_step_size = std::max(1, int(std::ceil((max_x - min_x) / x_steps)));
  3. int y_steps = int(std::ceil(250 * 250 / x_steps));
  4. 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