RAPP Platform API
Main Page
Packages
Classes
Files
File List
File Members
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__
;
47
float
bottom_right_x__
;
48
float
bottom_right_y__
;
49
};
50
}
51
}
52
#endif
rapp::object::face::operator==
bool operator==(const face &rhs) const
Equality operator.
Definition:
face.hpp:36
rapp::object::face
describes a face coordinate (cartesian)
Definition:
face.hpp:13
includes.ihh
rapp::object::face::top_left_y__
float top_left_y__
Definition:
face.hpp:46
rapp::object::face::face
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
rapp::object::face::top_left_x__
float top_left_x__
Definition:
face.hpp:45
rapp::object::face::bottom_right_y__
float bottom_right_y__
Definition:
face.hpp:48
rapp::object::face::bottom_right_x__
float bottom_right_x__
Definition:
face.hpp:47
rapp::object::face::face
face()=default
Allow empty consructor.
cpp
includes
objects
face
face.hpp
Generated on Fri Jul 29 2016 18:45:01 for RAPP Platform API by
1.8.6