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
Map/Obstacles/Obs_circle.h@23:3a34b8b70da6, 2016-01-20 (annotated)
- Committer:
- IceTeam
- Date:
- Wed Jan 20 16:06:36 2016 +0000
- Revision:
- 23:3a34b8b70da6
- Parent:
- 11:9c70a7f4d7aa
- Child:
- 26:b6e59194efba
- Child:
- 27:ae68960316f1
Test avec mpc = 100 et un objet un peu plus proche
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
IceTeam | 11:9c70a7f4d7aa | 1 | #ifndef OBS_CIRCLE_H_ |
IceTeam | 11:9c70a7f4d7aa | 2 | #define OBS_CIRCLE_H_ |
IceTeam | 11:9c70a7f4d7aa | 3 | |
IceTeam | 11:9c70a7f4d7aa | 4 | #include "Obstacle.h" |
IceTeam | 11:9c70a7f4d7aa | 5 | |
IceTeam | 11:9c70a7f4d7aa | 6 | class Obs_circle: public Obstacle |
IceTeam | 11:9c70a7f4d7aa | 7 | { |
IceTeam | 11:9c70a7f4d7aa | 8 | public: |
IceTeam | 23:3a34b8b70da6 | 9 | /** Definit un obstacle de la forme d'un cercle |
IceTeam | 23:3a34b8b70da6 | 10 | * @param |
IceTeam | 11:9c70a7f4d7aa | 11 | Obs_circle(float robotRadius, int id, float x, float y, float size); |
IceTeam | 11:9c70a7f4d7aa | 12 | virtual int height(float x, float y); |
IceTeam | 11:9c70a7f4d7aa | 13 | |
IceTeam | 11:9c70a7f4d7aa | 14 | //void setPos(float x, float y); |
IceTeam | 11:9c70a7f4d7aa | 15 | private: |
IceTeam | 11:9c70a7f4d7aa | 16 | float x,y,size2; // size2 c'est la taille au carré |
IceTeam | 11:9c70a7f4d7aa | 17 | }; |
IceTeam | 11:9c70a7f4d7aa | 18 | |
IceTeam | 11:9c70a7f4d7aa | 19 | #endif |