searchlocation.h
Go to the documentation of this file.
1 #ifndef SEARCHLOCATION_H
2 #define SEARCHLOCATION_H
3 
4 #include <iostream>
5 
7 {
8 public:
9  float x, y, theta;
10 
11  static constexpr float sameness_threshold = 0.1;
12 
14  SearchLocation(float _x, float _y, float _theta);
15 
16  bool operator == (const SearchLocation &other);
17  bool operator < (const SearchLocation &other) const;
18  float distTo(SearchLocation other);
19 
20  friend std::ostream &operator<< (std::ostream &stream, const SearchLocation &loc)
21  {
22  stream << "(" << loc.x << "," << loc.y << "," << loc.theta << ")";
23  return stream;
24  }
25 };
26 
27 #endif // SEARCHLOCATION_H
float distTo(SearchLocation other)
friend std::ostream & operator<<(std::ostream &stream, const SearchLocation &loc)
static constexpr float sameness_threshold
bool operator<(const SearchLocation &other) const
bool operator==(const SearchLocation &other)


igvc
Author(s): Matthew Barulic , Al Chaussee
autogenerated on Sun May 10 2015 16:18:45