82 double distance = sqrt(pow(position.
getX() -
x, 2.0) + pow(position.
getY() -
y, 2.0));
88 if (direction >= 180.0) {
90 }
else if (direction < -180.0) {
97 if (
x != 0.0)
x *= -1.0;
98 if (
y != 0.0)
y *= -1.0;
106 std::stringstream ss;
108 ss <<
"(" << std::setprecision(4) <<
x <<
"," <<
y;
115 ss <<
"," << std::setprecision(4) <<
theta;
118 ss <<
"," << std::setprecision(4) << theta <<
"," <<
gamma;
123 ss <<
")" << std::endl;
124 std::string stringPosition;
125 std::getline(ss, stringPosition);
126 return stringPosition;
Position The Position lorem Ipsum
double getBodyDirection()
POSITION_TYPE
POSITION_TYPE The Position Type lorem Ipsum
double getHeadDirection()
double getDirectionTo(Position position)
POSITION_TYPE getPositionType()
double getDistanceTo(Position position)