9 #include <mrpt/math/TPose2D.h> 13 static inline bool within_bbox(
14 const mrpt::math::TPose2D& p,
const mrpt::math::TPose2D& max,
15 const mrpt::math::TPose2D& min)
17 return p.x < max.x && p.y < max.y && p.phi < max.phi + 1e-6 &&
18 p.x > min.x && p.y > min.y && p.phi > min.phi - 1e-6;
21 static inline bool within_bbox(
22 const mrpt::math::TPoint2D& p,
const mrpt::math::TPose2D& max,
23 const mrpt::math::TPose2D& min)
25 return p.x < max.x && p.y < max.y &&
26 p.x > min.x && p.y > min.y;
Definition: bestTrajectory.h:15