summaryrefslogtreecommitdiff
path: root/parsecalldata.pde
diff options
context:
space:
mode:
authorgit@eclectronics.org <git@eclectronics.org@eclectronics.org>2012-02-16 16:46:43 +0000
committergit@eclectronics.org <git@eclectronics.org@eclectronics.org>2012-02-16 16:46:43 +0000
commit5a68500983aba528b0add0d2bc22abfc092c508a (patch)
tree3cfd8d2dd1a382ccb672be6cefb02d03eaa643a2 /parsecalldata.pde
parent6cc27b0a312caf61c5f6ef84cf3f089236d7fadf (diff)
drawing 3d calpaths
Diffstat (limited to 'parsecalldata.pde')
-rw-r--r--parsecalldata.pde7
1 files changed, 6 insertions, 1 deletions
diff --git a/parsecalldata.pde b/parsecalldata.pde
index 38bcd1e..ccedc4f 100644
--- a/parsecalldata.pde
+++ b/parsecalldata.pde
@@ -41,6 +41,11 @@ class country {
if (searching==0) return np;
else return new RPoint(0,0);
}
+ RPoint getcentre() {
+ RPoint tl=outline.getTopLeft();
+ RPoint br=outline.getBottomRight();
+ return new RPoint((tl.x+br.x)/2,(tl.y+br.y)/2);
+ }
}
class weightedpixel {
@@ -167,7 +172,7 @@ class calldata {
for (int i=0; i < countries.size(); i++) {
//if (DEBUG) countries.get(i).printOut();
- countries.get(i).analyse(18.279,746.302,109,374.293); //129.314
+ //countries.get(i).analyse(18.279,746.302,109,374.293); //129.314
}
}