-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTarget.h
More file actions
36 lines (27 loc) · 1.11 KB
/
Target.h
File metadata and controls
36 lines (27 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef TARGET_H
#define TARGET_H
#include "Team3499/Point.h"
#include "Team3499/Rect.h"
class Target {
public:
typedef enum {
LOW,
LMEDIUM,
RMEDIUM,
HIGH
} ID;
Target(Target::ID id);
Team3499::Point Position() const; // position on the field floor
Team3499::Rect Rectangle() const; // rect defined on target wall
int Height() const; // height of center from floor
int Value() const; // point value during teleop
int DistanceTo(const Team3499::Point &point) const; // 3d distance
int HDistanceTo(const Team3499::Point &point) const; // 2d distance on floor
private:
Target() {};
Team3499::Point position; // position on the field floor
Team3499::Rect rectangle; // rect defined on target wall
int height; // height of center from floor
int value; // point value during teleop
};
#endif /* TARGET_H */