Compare commits
No commits in common. "main" and "v1.0.0" have entirely different histories.
2
Line.h
2
Line.h
@ -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);
|
||||
}
|
||||
|
3
main.cpp
3
main.cpp
@ -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 = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user