Permalink
Browse files

tranpose map

  • Loading branch information...
unknown unknown
unknown authored and unknown committed Apr 20, 2012
1 parent f09ad13 commit 15e0441ba2eec726c1d2c6989054f8b1872c3be3
Showing with 3 additions and 3 deletions.
  1. +1 −1 Person.pde
  2. +1 −1 Way.pde
  3. +1 −1 spt.pde
View
@@ -33,7 +33,7 @@ class Person{
}
Point getGeoCoord(double transx, double transy,double scalex, double scaley){
- return new Point((new Double(this.x).doubleValue()/scalex)+transx, new Double(height-this.y).doubleValue()/scaley+transy);
+ return new Point((new Double(height-this.y).doubleValue()/scalex)+transx, new Double(width-this.x).doubleValue()/scaley+transy);
}
}
View
@@ -74,7 +74,7 @@ class Way{
float x2 = new Double((pt2.x-left)*scalex).floatValue();
float y2 = new Double((pt2.y-bottom)*scaley).floatValue();
- line( x1, height-y1, x2, height-y2);
+ line( width-y1, height-x1, width-y2, height-x2);
}
}
}
View
@@ -30,7 +30,7 @@ void setup(){
scalex=17000;
scaley=20000;
- transx=-71.085;
+ transx=-71.095;
transy=42.336;
map = new Map();

0 comments on commit 15e0441

Please sign in to comment.