mt-polygon-simplification/lib/simplify-wasm/debug.h

13 lines
284 B
C
Raw Permalink Normal View History

2019-07-16 17:31:20 +02:00
#import <stdio.h>
void printPoint(double* point) {
printf("[%lf, %lf]", point[0], point[1]);
}
void printPointerAsCoords(double * arr, int len) {
for (int i = 0; i < len; i += 2) {
printPoint(arr + i);
if (i < len - 2) printf(", ");
}
printf("\n");
}