many changes :P
This commit is contained in:
@@ -27,20 +27,20 @@ TEST(BBox, intersect) {
|
||||
GridNodeBBox bb1(GridPoint(20,20,20), 20);
|
||||
|
||||
// left
|
||||
ASSERT_FALSE(bb1.intersects( Line2D(9, -999, 9, +999) ));
|
||||
ASSERT_TRUE (bb1.intersects( Line2D(11, -999, 11, +999) ));
|
||||
ASSERT_FALSE(bb1.intersects( Line2(9, -999, 9, +999) ));
|
||||
ASSERT_TRUE (bb1.intersects( Line2(11, -999, 11, +999) ));
|
||||
|
||||
// right
|
||||
ASSERT_TRUE (bb1.intersects( Line2D(29, -999, 29, +999) ));
|
||||
ASSERT_FALSE(bb1.intersects( Line2D(31, -999, 31, +999) ));
|
||||
ASSERT_TRUE (bb1.intersects( Line2(29, -999, 29, +999) ));
|
||||
ASSERT_FALSE(bb1.intersects( Line2(31, -999, 31, +999) ));
|
||||
|
||||
// top
|
||||
ASSERT_FALSE(bb1.intersects( Line2D(-999, 9, +999, 9) ));
|
||||
ASSERT_TRUE (bb1.intersects( Line2D(-999, 11, +999, 11) ));
|
||||
ASSERT_FALSE(bb1.intersects( Line2(-999, 9, +999, 9) ));
|
||||
ASSERT_TRUE (bb1.intersects( Line2(-999, 11, +999, 11) ));
|
||||
|
||||
// bottom
|
||||
ASSERT_TRUE (bb1.intersects( Line2D(-999, 29, +999, 29) ));
|
||||
ASSERT_FALSE(bb1.intersects( Line2D(-999, 31, +999, 31) ));
|
||||
ASSERT_TRUE (bb1.intersects( Line2(-999, 29, +999, 29) ));
|
||||
ASSERT_FALSE(bb1.intersects( Line2(-999, 31, +999, 31) ));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user