3d-viewer: Fix intersection bug

Bounding box check always returned false, leading to incorrect BBox
checks when one bbox is interior to the other
This commit is contained in:
Seth Hillbrand 2018-10-11 05:11:53 -07:00
parent dff92f915c
commit ddea4e11d1
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ bool CROUNDSEGMENT2D::Intersects( const CBBOX2D &aBBox ) const
return false;
if( (aBBox.Max().x > m_bbox.Max().x) &&
(aBBox.Max().y > m_bbox.Max().x) &&
(aBBox.Max().y > m_bbox.Max().y) &&
(aBBox.Min().x < m_bbox.Min().x) &&
(aBBox.Min().y < m_bbox.Min().y)
)