Phoenix2D-Library  0.10
Public Member Functions | Private Attributes | List of all members
Phoenix::Position Class Reference

Position
The Position lorem Ipsum More...

#include <Position.h>

Public Member Functions

 Position ()
 
 Position (double x, double y)
 
 Position (double x, double y, double theta)
 
 Position (double x, double y, double theta, double gamma)
 
 ~Position ()
 
double getX ()
 
double getY ()
 
double getBodyDirection ()
 
double getHeadDirection ()
 
double getDistanceTo (Position position)
 
double getDirectionTo (Position position)
 
void mirror ()
 
POSITION_TYPE getPositionType ()
 
std::string toString ()
 

Private Attributes

double x
 
double y
 
double theta
 
double gamma
 
POSITION_TYPE type
 

Detailed Description

Position
The Position lorem Ipsum

Definition at line 50 of file Position.h.

Constructor & Destructor Documentation

Phoenix::Position::Position ( )

Definition at line 29 of file Position.cpp.

References Phoenix::EMPTY_P, gamma, theta, type, x, and y.

Phoenix::Position::Position ( double  x,
double  y 
)

Definition at line 37 of file Position.cpp.

References gamma, Phoenix::POINT_P, theta, type, x, and y.

Phoenix::Position::Position ( double  x,
double  y,
double  theta 
)

Definition at line 45 of file Position.cpp.

References gamma, Phoenix::OBJECT, theta, type, x, and y.

Phoenix::Position::Position ( double  x,
double  y,
double  theta,
double  gamma 
)

Definition at line 53 of file Position.cpp.

References Phoenix::COMPLETE, gamma, theta, type, x, and y.

Phoenix::Position::~Position ( )

Definition at line 61 of file Position.cpp.

Member Function Documentation

double Phoenix::Position::getBodyDirection ( )
double Phoenix::Position::getDirectionTo ( Position  position)

Definition at line 86 of file Position.cpp.

References gamma, getX(), getY(), Phoenix::Self::PI, theta, x, and y.

Referenced by Phoenix::Actions::goTo().

Here is the call graph for this function:

double Phoenix::Position::getDistanceTo ( Position  position)

Definition at line 81 of file Position.cpp.

References getX(), getY(), x, and y.

Referenced by Phoenix::compareDistances(), Phoenix::Actions::goTo(), and Phoenix::World::updateWorld().

Here is the call graph for this function:

double Phoenix::Position::getHeadDirection ( )

Definition at line 77 of file Position.cpp.

References gamma.

Referenced by Phoenix::Ball::Ball(), and Phoenix::Player::Player().

POSITION_TYPE Phoenix::Position::getPositionType ( )

Definition at line 101 of file Position.cpp.

References type.

double Phoenix::Position::getX ( )
double Phoenix::Position::getY ( )
void Phoenix::Position::mirror ( )

Definition at line 96 of file Position.cpp.

References x, and y.

std::string Phoenix::Position::toString ( )

Member Data Documentation

double Phoenix::Position::gamma
private

Definition at line 54 of file Position.h.

Referenced by getDirectionTo(), getHeadDirection(), Position(), and toString().

double Phoenix::Position::theta
private

Definition at line 53 of file Position.h.

Referenced by getBodyDirection(), getDirectionTo(), Position(), and toString().

POSITION_TYPE Phoenix::Position::type
private

Definition at line 55 of file Position.h.

Referenced by getPositionType(), Position(), and toString().

double Phoenix::Position::x
private

Definition at line 51 of file Position.h.

Referenced by getDirectionTo(), getDistanceTo(), getX(), mirror(), Position(), and toString().

double Phoenix::Position::y
private

Definition at line 52 of file Position.h.

Referenced by getDirectionTo(), getDistanceTo(), getY(), mirror(), Position(), and toString().


The documentation for this class was generated from the following files: