fixed comment newline seperator
This commit is contained in:
parent
872cd6c452
commit
0500981fdd
@ -94,6 +94,15 @@ public:
|
|||||||
{
|
{
|
||||||
x = (i%2 == 0) ? OFFSET : WIDTH - OFFSET;
|
x = (i%2 == 0) ? OFFSET : WIDTH - OFFSET;
|
||||||
y = diff/2 + (i/2) * diff;
|
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));
|
points.push_back(Point(x, y));
|
||||||
}
|
}
|
||||||
@ -129,8 +138,8 @@ public:
|
|||||||
for (int i = 0; i < valCount; ++i)
|
for (int i = 0; i < valCount; ++i)
|
||||||
{
|
{
|
||||||
x = OFFSET + static_cast <float> (rand()) / (static_cast <float> (RAND_MAX / (std::min(WIDTH, HEIGHT) - 2 * OFFSET)));
|
x = OFFSET + static_cast <float> (rand()) / (static_cast <float> (RAND_MAX / (std::min(WIDTH, HEIGHT) - 2 * OFFSET)));
|
||||||
points.push_back(Point(x, HEIGHT - x)); // /
|
points.push_back(Point(x, HEIGHT - x)); // ascending
|
||||||
//points.push_back(Point(x, HEIGHT - x)); // \
|
//points.push_back(Point(x, HEIGHT - x)); // descending
|
||||||
}
|
}
|
||||||
return points;
|
return points;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user