Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(autoware_universe_utils): reduce dependence on Boost.Geometry (a…
…utowarefoundation#7778) * add within function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * return nullopt as is Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add disjoint function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add polygon-and-polygon version of intersect function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * use intersect for disjoint Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add test case for disjoint Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * checking intersection of edges is unnecessary Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * return nullopt when no intersection point found Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add distance function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add coveredBy function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add point-polygon variant of distance function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add isAbove function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add divideBySegment function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add convexHull function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add correct function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add area function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * change point type to tf2::Vector3 Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * simplify correct function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * push geometry types to namespace Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * match the behavior of Boost.Geometry Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add test cases for benchmarking Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add headers for convex_hull() Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * remove polygon-polygon intersect & disjoint function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add intersects function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add touches function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add disjoint function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * minor fix Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * change name Polygon to CvxPolygon Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * change name CvxPolygon to ConvexPolygon Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * rename intersect function and restore the original Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * change function names to snake_case Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * early return Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * change point type from tf2::Vector3 to custom struct Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * style(pre-commit): autofix * use alt::Vector2d to represent point Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * convert from boost before time measurement Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add header for std::move Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * avoid using long Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * convert from boost before time measurement Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add point-segment variant of touches function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * improve performance of point-polygon touches() Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * improve performance of area() Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add note for class naming Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * improve performance of covered_by() Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * simplify within() Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * improve performance of covered_by() Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * improve performance of within() Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * use operator[] instead of at() Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * print point when covered_by() test failed Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * avoid using hypot() Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * improve performace of convex_hull() Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * remove divide_by_segment() function Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * fix test cases Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * improve performance of touches() Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add test case for touches() Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * improve performance of touches() Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * change type alias PointList to Points2d Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * add & fix vector size assertions Signed-off-by: mitukou1109 <mitukou1109@gmail.com> * define epsilon respectively Signed-off-by: mitukou1109 <mitukou1109@gmail.com> --------- Signed-off-by: mitukou1109 <mitukou1109@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com>
- Loading branch information