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.
Fork of Timer by
Diff: Map/obsCarr.h
- Revision:
- 47:be4eebf40568
- Child:
- 70:d70a6db1f635
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Map/obsCarr.h Mon Apr 25 12:42:32 2016 +0000
@@ -0,0 +1,31 @@
+#ifndef OBSCARR_H
+#define OBSCARR_H
+
+#include "controle.h"
+#include "figure.h"
+#include "point.h"
+
+class obsCarr : public figure {
+public:
+ obsCarr (float xc, float yc, float dxt, float dyt) : figure (xc,yc) {
+ dxtaille = dxt;
+ dytaille = dyt;
+ }
+
+ /* Retourne true si le segment AB croise le rectangle */
+ bool getCroisement (point A, point B);
+ /* Retourne true si le segment AB croise le rectangle */
+ bool getCroisement (float X, float Y, point B);
+
+ /* Retourne 4 Points pas tres loin du rectangle par lesquels peut passer le robot ! */
+ points4 getPoints ();
+ bool belongs (point& A);
+
+ float getDXT () { return dxtaille; }
+ float getDYT () { return dytaille; }
+
+protected:
+ float dxtaille, dytaille;
+};
+
+#endif
\ No newline at end of file
