From ed539c88af8e18ae3b505e324319b956944e0d91 Mon Sep 17 00:00:00 2001 From: Comment Date: Tue, 29 Jan 2013 17:23:14 +0000 Subject: working with accumulation --- src/boundary.cpp | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/boundary.cpp') diff --git a/src/boundary.cpp b/src/boundary.cpp index 2425c4a..3e5b18c 100755 --- a/src/boundary.cpp +++ b/src/boundary.cpp @@ -37,13 +37,15 @@ void boundary::undo(){ } void boundary::getCentroid(){ - float x=0; float y=0; + float maxx=-1; + float minx=100000; for (int i=0;i