
coucou
Fork of Robot2016_2-0 by
Map/obsCarr.h
- Committer:
- IceTeam
- Date:
- 2016-05-05
- Revision:
- 76:cd8c7da76768
- Parent:
- 72:b628daa54f3c
File content as of revision 76:cd8c7da76768:
#ifndef OBSCARR_H #define OBSCARR_H #include "controle.h" #include "figure.h" #include "point.h" #define TAILLE_SECURITE 155 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