Skip to content

Commit

Permalink
Clean up build warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
juj committed Mar 12, 2014
1 parent e4bfbba commit 35bcef8
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions tests/FrustumTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,19 +177,15 @@ RANDOMIZED_TEST(Frustum_Contains_Corners)

for(int i = 0; i < 9; ++i)
{
vec pt;
if (i == 8)
pt = b.CenterPoint();
else
pt = b.CornerPoint(i);

assert(b.NearPlane().SignedDistance(pt) < 1e-3f);
assert(b.FarPlane().SignedDistance(pt) < 1e-3f);
assert(b.LeftPlane().SignedDistance(pt) < 1e-3f);
assert(b.RightPlane().SignedDistance(pt) < 1e-3f);
assert(b.TopPlane().SignedDistance(pt) < 1e-3f);
assert(b.BottomPlane().SignedDistance(pt) < 1e-3f);
assert(b.Contains(pt));
vec point = (i == 8) ? b.CenterPoint() : b.CornerPoint(i);

assert(b.NearPlane().SignedDistance(point) < 1e-3f);
assert(b.FarPlane().SignedDistance(point) < 1e-3f);
assert(b.LeftPlane().SignedDistance(point) < 1e-3f);
assert(b.RightPlane().SignedDistance(point) < 1e-3f);
assert(b.TopPlane().SignedDistance(point) < 1e-3f);
assert(b.BottomPlane().SignedDistance(point) < 1e-3f);
assert(b.Contains(point));
}
}

Expand Down

0 comments on commit 35bcef8

Please sign in to comment.