#include <utility.h>
Public Member Functions | |
const float | displaceAngle (const float a1, float a2) const |
const float | euclideanDistance (const std::vector< float > a, const std::vector< float > b) const |
const float | findAngleFromAToB (const std::vector< float > a, const std::vector< float > b) const |
const float | findDistanceBetweenAngles (const float a1, const float a2) const |
const float | getEuclideanDist (const std::vector< float > a, std::vector< float > b) const |
Utility () | |
~Utility () |
Utility::Utility | ( | ) |
Definition at line 3 of file utility.cpp.
Utility::~Utility | ( | ) | [inline] |
const float Utility::displaceAngle | ( | const float | a1, |
float | a2 | ||
) | const |
Definition at line 82 of file utility.cpp.
const float Utility::euclideanDistance | ( | const std::vector< float > | a, |
const std::vector< float > | b | ||
) | const |
This method returns the Euclidean distance between two position vectors
Definition at line 7 of file utility.cpp.
const float Utility::findAngleFromAToB | ( | const std::vector< float > | a, |
const std::vector< float > | b | ||
) | const |
This method returns the angle that will form a straight line from position a to position b. a and b are [x, y] vectors.
Definition at line 15 of file utility.cpp.
const float Utility::findDistanceBetweenAngles | ( | const float | a1, |
const float | a2 | ||
) | const |
This method returns distance between orientations a1 and a2. The distance is in the range [-PI, PI].
Definition at line 56 of file utility.cpp.
const float Utility::getEuclideanDist | ( | const std::vector< float > | a, |
std::vector< float > | b | ||
) | const |
a and b must be the same size
Definition at line 96 of file utility.cpp.