-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnav.h
More file actions
21 lines (14 loc) · 667 Bytes
/
nav.h
File metadata and controls
21 lines (14 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class fPoint
{ public:
float x;
float y;
fPoint(float xi=0, float yi=0) {x=xi; y=yi; };
fPoint & operator =(const fPoint d) {x=d.x; y=d.y; return *this; };
float Dist(const fPoint &p1);
float HeadToHereDeg(const fPoint &from);
};
float Calc_Distance(const fPoint &p1, const fPoint &p2);
float Calc_HeadDeg(const fPoint &pfrom,const fPoint &pto);
float inv_sqrt( float number );
float turn_angle(float cur_a, float next_a);
fPoint AvgPoint(fPoint & p1, fPoint& p2);