-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsupport.hpp
More file actions
28 lines (18 loc) · 692 Bytes
/
Copy pathsupport.hpp
File metadata and controls
28 lines (18 loc) · 692 Bytes
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
#ifndef SUPPORT_HPP
#define SUPPORT_HPP
namespace support {
#define GRID_SIZE 10
#define MAX_GRID (10*10)
double compute_distance(double x1,
double y1,
double x2,
double y2);
double* find_collision(const double x, const double y,
double *targets, const int num_targets);
bool intersect_obstacle(double x1, double y1,
const int i, const int j);
int* find_collision(const double x, const double y,
int *obstacles, const int num_obstacles);
void remove_target(double* targets, int &tot_targets, double* target_to_remove);
}
#endif // SUPPORT_HPP