face.hpp
1 #ifndef NOOS_OBJECT_FACE
2 #define NOOS_OBJECT_FACE
3 /*
4  * LICENSE HERE
5  */
6 #include "includes.ihh"
7 namespace noos {
9 namespace object {
17 struct face
18 {
20  float top_left_x;
22  float top_left_y;
27 
29  face(const json::const_iterator & face_it);
30 
32  json::object_t to_json() const;
33 
35  bool operator==(const face & rhs) const;
36 
38  void up_left_point(const json::const_iterator & coord_it);
39 
41  void down_right_point(const json::const_iterator & coord_it);
42 };
43 }
44 }
45 #endif
json::object_t to_json() const
void down_right_point(const json::const_iterator &coord_it)
Method to find the down_right_point information from json data.
face(const json::const_iterator &face_it)
Constructor using json for modern C++
Definition: asio_handler.hpp:14
bool operator==(const face &rhs) const
Equality operator.
float top_left_y
coordinate y of the top left corner
Definition: face.hpp:22
float top_left_x
coordinate x of the top left corner
Definition: face.hpp:20
float bottom_right_x
coordinate x of the bottom right corner
Definition: face.hpp:24
float bottom_right_y
coordinate y of the bottom right corner
Definition: face.hpp:26
describes a face coordinate (cartesian)
Definition: face.hpp:17
void up_left_point(const json::const_iterator &coord_it)
Method to find the up_left_point information from json data.