Robot secondaire
Dependencies: RoboClaw mbed StepperMotor
Fork of RoboClaw by
Map/obsCarr.h
- Committer:
- sype
- Date:
- 2016-05-05
- Revision:
- 77:f19cc7f81f2a
- Parent:
- 47:be4eebf40568
- Child:
- 70:d70a6db1f635
File content as of revision 77:f19cc7f81f2a:
#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