Phoenix2D-Library  0.10
Position.h
Go to the documentation of this file.
1 /*
2  * Phoenix2D (RoboCup Soccer Simulation 2D League)
3  * Copyright (c) 2013 Ivan Gonzalez
4  *
5  * This file is part of Phoenix2D.
6  *
7  * Phoenix2D is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * Phoenix2D is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with Phoenix2D. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef POSITION_H_
22 #define POSITION_H_
23 
24 #include <string>
25 
29 namespace Phoenix
30 {
31 
44 };
45 
50 class Position {
51  double x;
52  double y;
53  double theta;
54  double gamma;
56 public:
57  Position();
58  Position(double x, double y);
59  Position(double x, double y, double theta);
60  Position(double x, double y, double theta, double gamma);
61  ~Position();
62  double getX();
63  double getY();
64  double getBodyDirection();
65  double getHeadDirection();
66  double getDistanceTo(Position position);
67  double getDirectionTo(Position position);
68  void mirror();
70  std::string toString();
71 };
72 } // End namespace Phoenix
75 #endif /* POSITION_H_ */
Emtpy.
Definition: Position.h:38
Position The Position lorem Ipsum
Definition: Position.h:50
double getBodyDirection()
Definition: Position.cpp:73
Emtpy.
Definition: Position.h:42
std::string toString()
Definition: Position.cpp:105
POSITION_TYPE
POSITION_TYPE The Position Type lorem Ipsum
Definition: Position.h:36
double getHeadDirection()
Definition: Position.cpp:77
double getDirectionTo(Position position)
Definition: Position.cpp:86
Emtpy.
Definition: Position.h:39
POSITION_TYPE getPositionType()
Definition: Position.cpp:101
POSITION_TYPE type
Definition: Position.h:55
double getDistanceTo(Position position)
Definition: Position.cpp:81
Emtpy.
Definition: Position.h:41