RAPP Platform API
 All Classes Namespaces Files Functions Variables Typedefs
face.hpp
Go to the documentation of this file.
1 #ifndef RAPP_OBJECT_FACE
2 #define RAPP_OBJECT_FACE
3 #include "includes.ihh"
4 namespace rapp {
5 namespace object {
13 class face
14 {
15 public:
17  face(
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  face() = default;
31 
33  face(const face &) = default;
34 
36  bool operator==(const face & 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
bool operator==(const face &rhs) const
Equality operator.
Definition: face.hpp:36
describes a face coordinate (cartesian)
Definition: face.hpp:13
float top_left_y__
Definition: face.hpp:46
face(float top_left_x, float top_left_y, float bottom_right_x, float bottom_right_y)
Consruct using face coordinates (a rectangle)
Definition: face.hpp:17
float top_left_x__
Definition: face.hpp:45
float bottom_right_y__
Definition: face.hpp:48
float bottom_right_x__
Definition: face.hpp:47
face()=default
Allow empty consructor.