diff --git a/NumberGenerator.h b/NumberGenerator.h index 9de5e1f..4b6ca97 100644 --- a/NumberGenerator.h +++ b/NumberGenerator.h @@ -94,6 +94,15 @@ public: { x = (i%2 == 0) ? OFFSET : WIDTH - OFFSET; y = diff/2 + (i/2) * diff; + /*if (i % 4 == 0) + { + x = OFFSET; + } + else + { + x = (i % 4) * WIDTH / 4; + } + y = diff / 4 + (i / 4) * diff;*/ points.push_back(Point(x, y)); } @@ -129,8 +138,8 @@ public: for (int i = 0; i < valCount; ++i) { x = OFFSET + static_cast (rand()) / (static_cast (RAND_MAX / (std::min(WIDTH, HEIGHT) - 2 * OFFSET))); - points.push_back(Point(x, HEIGHT - x)); // / - //points.push_back(Point(x, HEIGHT - x)); // \ + points.push_back(Point(x, HEIGHT - x)); // ascending + //points.push_back(Point(x, HEIGHT - x)); // descending } return points; }