Fixing unreachable statement nvcc warning

This commit is contained in:
Abhishek Yenpure 2019-08-08 09:41:23 -07:00
parent 2798c737a2
commit 39e278cf0b

@ -88,10 +88,11 @@ public:
inside = false;
if (point[1] < this->MinPoint[1] || point[1] > this->MaxPoint[1])
inside = false;
if (dimensions == 2)
return inside;
if (point[2] < this->MinPoint[2] || point[2] > this->MaxPoint[2])
inside = false;
if (dimensions == 3)
{
if (point[2] < this->MinPoint[2] || point[2] > this->MaxPoint[2])
inside = false;
}
return inside;
}