RAPP Platform API
 All Classes Namespaces Files Functions Variables Typedefs
human.hpp
Go to the documentation of this file.
1 #ifndef RAPP_OBJECT_HUMAN
2 #define RAPP_OBJECT_HUMAN
3 #include "includes.ihh"
4 namespace rapp {
5 namespace object {
13 class human
14 {
15 public:
18  float top_left_x,
19  float top_left_y,
20  float bottom_right_x,
21  float bottom_right_y
22  )
23  : top_left_x__(top_left_x),
24  top_left_y__(top_left_y),
25  bottom_right_x__(bottom_right_x),
26  bottom_right_y__(bottom_right_y)
27  {}
28 
30  human() = default;
31 
33  human(const human &) = default;
34 
36  bool operator==(const human & rhs) const
37  {
38  return ( this->top_left_x__ == rhs.top_left_x__ &&
39  this->top_left_y__ == rhs.top_left_y__ &&
40  this->bottom_right_x__ == rhs.bottom_right_x__ &&
41  this->bottom_right_y__ == rhs.bottom_right_y__);
42  }
43 
44 private:
45  float top_left_x__;
46  float top_left_y__;
49 };
50 }
51 }
52 #endif
human(float top_left_x, float top_left_y, float bottom_right_x, float bottom_right_y)
Consruct using coordinates (a rectangle)
Definition: human.hpp:17
float bottom_right_y__
Definition: human.hpp:48
float top_left_y__
Definition: human.hpp:46
float top_left_x__
Definition: human.hpp:45
human()=default
Allow empty consructor.
describes human coordinates
Definition: human.hpp:13
bool operator==(const human &rhs) const
Equality operator.
Definition: human.hpp:36
float bottom_right_x__
Definition: human.hpp:47