star-2d

Contour structuring for efficient 2D geometric queries
git clone git://git.meso-star.fr/star-2d.git
Log | Files | Refs | README | LICENSE

commit 073b16667cc4c6f1aad4c840169d6f4d7bc0254d
parent dbb4560ff2d55e1818c44429864e38ab7c560857
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 22 Jun 2021 12:02:44 +0200

Fix the closest point test

Diffstat:
Msrc/test_s2d_closest_point.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test_s2d_closest_point.c b/src/test_s2d_closest_point.c @@ -217,7 +217,7 @@ square_filter float pos[3]; float vec[3]; - CHK(hit && org && dir && range && S2D_HIT_NONE(hit)); + CHK(hit && org && dir && range && !S2D_HIT_NONE(hit)); CHK((intptr_t)filter_data == (intptr_t)0xDECAFBAD); CHK(f2_normalize(vec, dir) != 0);