blob: 8a5e05edd907f0f03573b8b0b39f23625fdab2e5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#ifndef COORDINATES_H__
#define COORDINATES_H__
/* *******************************************************************
* Includes
* ******************************************************************/
#include <stdbool.h>
#include <stdint.h>
/* *******************************************************************
* Defines
* ******************************************************************/
/* *******************************************************************
* Global types definition
* ******************************************************************/
/* *******************************************************************
* Global variables declaration
* ******************************************************************/
/* *******************************************************************
* Global functions declaration
* ******************************************************************/
/* *******************************************************************
* Class definition
* ******************************************************************/
class Coordinates
{
public:
typedef uint16_t tPos;
explicit Coordinates(const tPos x, const tPos y);
Coordinates operator+(const Coordinates& c) const;
tPos getX(void) const;
tPos getY(void) const;
private:
tPos _x;
tPos _y;
};
#endif /* COORDINATES_H__ */
|