From b5324f48c855b0c82ccf6da7d5a008fe5cf1c17e Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Mon, 8 Aug 2016 17:01:53 -0300 Subject: Start Power Line implementation gogogogo --- Project/Bus.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Project/Bus.cpp') diff --git a/Project/Bus.cpp b/Project/Bus.cpp index 923d947..a7ebf59 100644 --- a/Project/Bus.cpp +++ b/Project/Bus.cpp @@ -9,6 +9,7 @@ Bus::Bus(wxPoint2DDouble position) : Element() } Bus::~Bus() {} + void Bus::Draw(wxPoint2DDouble translation, double scale) const { // Draw selection (layer 1) @@ -74,11 +75,7 @@ bool Bus::Contains(wxPoint2DDouble position) const return m_rect.Contains(ptR); } -bool Bus::Intersects(wxRect2DDouble rect) const -{ - return rect.Intersects(m_rect); -} - +bool Bus::Intersects(wxRect2DDouble rect) const { return rect.Intersects(m_rect); } bool Bus::PickboxContains(wxPoint2DDouble position) { m_activePickboxID = ID_PB_NONE; -- cgit