This commit is contained in:
2024-01-12 09:49:53 -06:00
parent 1030b6e50e
commit 624bd7a23b
2 changed files with 14 additions and 8 deletions

View File

@ -179,6 +179,10 @@ void test_math() {
printf("Binary: %s\n", s2);
printf("Decimal: %d\n", binstr_to_int(s2));
i = 10;
i = clamp_int(i, 2, 5);
assert(i == 5);
printf("\nGenerate line from 0,0 to 2,5\n");
size_t sz = 0;
Point *line = bresenham(0, 0, 2, 5, &sz);