Skip to content
Snippets Groups Projects
Commit 8cde16f3 authored by mika's avatar mika
Browse files

some todos

parent f01a46f2
Branches
No related tags found
No related merge requests found
......@@ -94,6 +94,7 @@ double det2(double a, double b, double c, double d) {
* https://de.wikipedia.org/wiki/Cramersche_Regel
* https://de.wikipedia.org/wiki/Determinante
*/
//TODO seperate radius from this function
circle circleFrom3Points(vertex v1, vertex v2, vertex v3) {
circle c;
double ax = 2*(v1.x-v2.x);
......
......@@ -765,6 +765,7 @@ EDGE_PTR e;
}
}
//TODO replace other circle function with this?
struct VEC2 circle_center(a,b,c)
/* returns the center of the circle passing through A, B & C. */
struct VEC2 a,b,c;
......
......@@ -26,10 +26,9 @@ int main(int argc, char *argv[]) {
}
//vertex *points = malloc(numberOfPoints * sizeof(vertex));
vertex points[numberOfPoints];
vertex *points = malloc(numberOfPoints * sizeof(vertex));
generatePoints(points, numberOfPoints);
printf("%lu\n", sizeof(points));
printf("%lu\n", numberOfPoints * sizeof(vertex));
//drawPoints(points, numberOfPoints);
#ifdef OUTPUTFILE
......
......@@ -121,6 +121,7 @@ void voronoiCws(vertex* S, int size) {
}
}
lastV = currentV;
#ifdef DEL
if(i < j && i < k) {
if(isTriangle == 2){
#ifdef OUTPUTFILE
......@@ -128,6 +129,7 @@ void voronoiCws(vertex* S, int size) {
#endif
}
}
#endif
j = k;
} while(j != j0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment