Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: include/geom.hpp
- Revision:
- 23:112c0be5a7f3
- Child:
- 31:d079a9d70407
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/include/geom.hpp Tue Nov 19 19:07:35 2013 +0000
@@ -0,0 +1,54 @@
+#include "mbed.h"
+
+#ifndef GEOM_HPP
+#define GEOM_HPP
+
+class Tuple{
+ public:
+ Tuple(int xin, int yin);
+
+ int x;
+ int y;
+};
+
+class Point {
+ public:
+ Point(float xin, float yin, float thetain);
+
+ float x;
+ float y;
+ float theta;
+};
+
+class Line {
+ public:
+ Line(Point p1, Point p2);
+
+ Point p1;
+ Point p2;
+};
+
+class BezCurve {
+
+ public:
+ BezCurve(Point *ptsin, int sizein);
+
+ void startCurve();
+ Point getPoint(float alpha);
+ Point getPoint();
+ void setAlpha(float alpha);
+ float incrementAlpha();
+ float incrementAlpha(float velin, float time);
+ void setAdot(float velin);
+ Point newPoint();
+
+ Point *pts;
+
+ private:
+ int size;
+ float alpha;
+ float vel;
+ Timer t;
+};
+
+#endif
\ No newline at end of file
