added bool Intersects()

This commit is contained in:
dickelbeck 2008-03-13 16:44:28 +00:00
parent 0e709a1227
commit c6cee52cc6
1 changed files with 7 additions and 0 deletions

View File

@ -654,6 +654,13 @@ public:
m_Size.x = pos.x - m_Pos.x; m_Size.y = pos.y - m_Pos.y; 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) * Function operator(wxRect)
* overloads the cast operator to return a wxRect * overloads the cast operator to return a wxRect