From c6cee52cc69466f2e8e592453ba395764c31a01c Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Thu, 13 Mar 2008 16:44:28 +0000 Subject: [PATCH] added bool Intersects() --- include/base_struct.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/base_struct.h b/include/base_struct.h index 7730a35b5d..c8613c28b9 100644 --- a/include/base_struct.h +++ b/include/base_struct.h @@ -654,6 +654,13 @@ public: m_Size.x = pos.x - m_Pos.x; m_Size.y = pos.y - m_Pos.y; } + /** + * Function Intersects + * @return bool - true if the argument rectangle intersects this rectangle. + */ + bool Intersects( const EDA_Rect aRect ) const; + + /** * Function operator(wxRect) * overloads the cast operator to return a wxRect