From 10c5f72af2386a582db495ed4c6d9b336f2abe76 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Tue, 30 Jun 2009 16:07:13 +0000 Subject: [PATCH] Corrected 1 bug in DistancePoint2Box2 function --- vcg/space/box2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/space/box2.h b/vcg/space/box2.h index 19397570..2c301521 100644 --- a/vcg/space/box2.h +++ b/vcg/space/box2.h @@ -260,7 +260,7 @@ ScalarType DistancePoint2Box2(const Point2 &test, const Box2 &bbox) { ///test possible position respect to bounding box - if (!bbox.IsIN(test)){ + if (!bbox.IsIn(test)){ if ((test.X()<=bbox.min.X())&&(test.Y()<=bbox.min.Y())) return ((test-bbox.min).Norm()); else