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