◆ TrajectoryObstacle()
template<typename GEOM_TYPE >
◆ contains()
template<typename GEOM_TYPE >
| bool contains |
( |
const Point & |
p, |
|
|
const double |
t_sec = 0 |
|
) |
| const |
|
overridevirtual |
◆ distance()
template<typename GEOM_TYPE >
| double distance |
( |
const Point & |
p, |
|
|
const double |
t_sec = 0 |
|
) |
| const |
|
overridevirtual |
Gets the minimum distance from the obstacle to the point
- Parameters
-
| p | Point to get distance to |
| t_sec | Time in seconds into the future to get distance to. |
- Returns
- distance to point
Reimplemented from GeomObstacle< GEOM_TYPE >.
◆ intersects()
template<typename GEOM_TYPE >
| bool intersects |
( |
const Segment & |
segment, |
|
|
const double |
t_sec = 0 |
|
) |
| const |
|
overridevirtual |
◆ signedDistance()
template<typename GEOM_TYPE >
| double signedDistance |
( |
const Point & |
point, |
|
|
const double |
t_sec = 0 |
|
) |
| const |
|
overridevirtual |
Gets the signed distance from the obstacle's perimeter to the point. That is, if point is inside the obstacle then distance will be negative. See https://iquilezles.org/articles/distfunctions2d/ for details on the maths
- Parameters
-
| point | Point to get distance to |
| t_sec | Time in seconds into the future to get distance to. |
- Returns
- distance from point to nearest point on perimeter of obstacle. Positive if outside, negative if inside
Reimplemented from GeomObstacle< GEOM_TYPE >.
The documentation for this class was generated from the following file: