Voili voilou

Dependencies:   RoboClaw StepperMotor mbed

Fork of Robot2016_2-0 by ARES

Committer:
IceTeam
Date:
Wed Apr 20 13:13:37 2016 +0000
Revision:
46:8eae88c45a78
Mise en static;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
IceTeam 46:8eae88c45a78 1 #ifndef OBSCARR_H
IceTeam 46:8eae88c45a78 2 #define OBSCARR_H
IceTeam 46:8eae88c45a78 3
IceTeam 46:8eae88c45a78 4 #include "controle.h"
IceTeam 46:8eae88c45a78 5 #include "figure.h"
IceTeam 46:8eae88c45a78 6 #include "point.h"
IceTeam 46:8eae88c45a78 7
IceTeam 46:8eae88c45a78 8 class obsCarr : public figure {
IceTeam 46:8eae88c45a78 9 public:
IceTeam 46:8eae88c45a78 10 obsCarr (float xc, float yc, float dxt, float dyt) : figure (xc,yc) {
IceTeam 46:8eae88c45a78 11 dxtaille = dxt;
IceTeam 46:8eae88c45a78 12 dytaille = dyt;
IceTeam 46:8eae88c45a78 13 }
IceTeam 46:8eae88c45a78 14
IceTeam 46:8eae88c45a78 15 /* Retourne true si le segment AB croise le rectangle */
IceTeam 46:8eae88c45a78 16 bool getCroisement (point A, point B);
IceTeam 46:8eae88c45a78 17 /* Retourne true si le segment AB croise le rectangle */
IceTeam 46:8eae88c45a78 18 bool getCroisement (float X, float Y, point B);
IceTeam 46:8eae88c45a78 19
IceTeam 46:8eae88c45a78 20 /* Retourne 4 Points pas tres loin du rectangle par lesquels peut passer le robot ! */
IceTeam 46:8eae88c45a78 21 points4 getPoints ();
IceTeam 46:8eae88c45a78 22 bool belongs (point& A);
IceTeam 46:8eae88c45a78 23
IceTeam 46:8eae88c45a78 24 float getDXT () { return dxtaille; }
IceTeam 46:8eae88c45a78 25 float getDYT () { return dytaille; }
IceTeam 46:8eae88c45a78 26
IceTeam 46:8eae88c45a78 27 protected:
IceTeam 46:8eae88c45a78 28 float dxtaille, dytaille;
IceTeam 46:8eae88c45a78 29 };
IceTeam 46:8eae88c45a78 30
IceTeam 46:8eae88c45a78 31 #endif