#include <math.h>
#include <algorithm>
#include <vector>
#include <geometry_msgs/Point.h>
Go to the source code of this file.
|
| double | distance (double x0, double y0, double x1, double y1) |
| |
| double | distanceToLine (double pX, double pY, double x0, double y0, double x1, double y1) |
| |
| bool | intersects (std::vector< geometry_msgs::Point > &polygon, float testx, float testy) |
| |
| bool | intersects (std::vector< geometry_msgs::Point > &polygon1, std::vector< geometry_msgs::Point > &polygon2) |
| |
| double | sign (double x) |
| | Return -1 if x < 0, +1 otherwise. More...
|
| |
| double | sign0 (double x) |
| | Same as sign(x) but returns 0 if x is 0. More...
|
| |
◆ distance()
| double distance |
( |
double |
x0, |
|
|
double |
y0, |
|
|
double |
x1, |
|
|
double |
y1 |
|
) |
| |
|
inline |
◆ distanceToLine()
| double distanceToLine |
( |
double |
pX, |
|
|
double |
pY, |
|
|
double |
x0, |
|
|
double |
y0, |
|
|
double |
x1, |
|
|
double |
y1 |
|
) |
| |
◆ intersects() [1/2]
| bool intersects |
( |
std::vector< geometry_msgs::Point > & |
polygon, |
|
|
float |
testx, |
|
|
float |
testy |
|
) |
| |
◆ intersects() [2/2]
| bool intersects |
( |
std::vector< geometry_msgs::Point > & |
polygon1, |
|
|
std::vector< geometry_msgs::Point > & |
polygon2 |
|
) |
| |
◆ sign()
◆ sign0()
Same as sign(x) but returns 0 if x is 0.
Definition at line 53 of file costmap_math.h.