Erik Kallen / PositionModule
Revision:
1:1d2eb2143108
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Point.h	Tue Oct 19 10:07:15 2010 +0000
@@ -0,0 +1,22 @@
+#ifndef MOTOR_POINT_H
+#define MOTOR_POINT_H
+#include "mbed.h"
+#define PI 3.14159265359
+class Point {
+    public:
+        Point(float x, float y);
+        Point();
+        float getX();
+        float getY();
+        void setX(float x);
+        void setY(float y);
+        static Point DegreesToXY(float degrees, float radius, Point origin);
+        static float XYToDegrees(Point xy, Point origin);
+    private:
+        float _x;
+        float _y;
+};
+
+
+
+#endif
\ No newline at end of file