|
|
@ -89,8 +89,8 @@ void setup(void) |
|
|
|
result = Polygon_outside(test_points[i].point, |
|
|
|
result = Polygon_outside(test_points[i].point, |
|
|
|
OBC_boundary, ARRAY_LENGTH(OBC_boundary)); |
|
|
|
OBC_boundary, ARRAY_LENGTH(OBC_boundary)); |
|
|
|
hal.console->printf_P(PSTR("%10f,%10f %s %s\n"), |
|
|
|
hal.console->printf_P(PSTR("%10f,%10f %s %s\n"), |
|
|
|
1.0e-7*test_points[i].point.x, |
|
|
|
1.0e-7f*test_points[i].point.x, |
|
|
|
1.0e-7*test_points[i].point.y, |
|
|
|
1.0e-7f*test_points[i].point.y, |
|
|
|
result ? "OUTSIDE" : "INSIDE ", |
|
|
|
result ? "OUTSIDE" : "INSIDE ", |
|
|
|
result == test_points[i].outside ? "PASS" : "FAIL"); |
|
|
|
result == test_points[i].outside ? "PASS" : "FAIL"); |
|
|
|
if (result != test_points[i].outside) { |
|
|
|
if (result != test_points[i].outside) { |
|
|
|