Compare commits

..

No commits in common. "main" and "v1.0.0" have entirely different histories.
main ... v1.0.0

2 changed files with 2 additions and 3 deletions

2
Line.h
View File

@ -58,7 +58,7 @@ public:
float b = to().x() - from().x();
float c = from().x() * to().y() - to().x() * from().y();
float d = a * other.x() + b * other.y() + c;
float d = abs(a * other.x() + b * other.y() + c);
return (d * d) / (a * a + b * b);
}

View File

@ -35,10 +35,9 @@ int main (int argc, char **argv)
// 1. random numbers in screen range
// 2. numbers are ordered as rectangle
// 3. numbers are ordered as circle around screen center
// 4. numbers are ordered as diagonal line
// -runs <count> runs performance mode multiple times
// -stepsize <size> time between autosteps; if 0 or not provided -> manual steps
// TODO: care a little more <3 --> getopt
// TODO: care a little more <3
bool vis = false;
bool akl = false;
std::string fileRnd = "";