proto/p2/Dimension.hh
changeset 4 e28b28b8817c
parent 3 5a209a8585c9
--- a/proto/p2/Dimension.hh	Mon Nov 03 21:36:17 2008 +0000
+++ b/proto/p2/Dimension.hh	Mon Nov 03 22:20:21 2008 +0000
@@ -20,6 +20,16 @@
 			this->x += d.dx;
 			this->y += d.dy;
 		}
+
+		uint32_t scaledX() {
+			// Scale the coordinate so that it 
+			// matches the pixel resolution
+			return this->x/1;
+		}
+
+		uint32_t scaledY() {
+			return this->y/1;
+		}
 };
 
 class PositionDelta {