Compare commits

..

2 Commits
v1.0.0 ... main

2 changed files with 3 additions and 2 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 = abs(a * other.x() + b * other.y() + c);
float d = a * other.x() + b * other.y() + c;
return (d * d) / (a * a + b * b);
}

View File

@ -35,9 +35,10 @@ 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
// TODO: care a little more <3 --> getopt
bool vis = false;
bool akl = false;
std::string fileRnd = "";