提交 d2271f81 编写于 作者: D Dong Li 提交者: Jiangtao Hu

remove the function is_on_road(box).

* The function has no use case.
* The function is misleading.
上级 1835259d
......@@ -546,17 +546,6 @@ bool Path::is_on_path(const Vec2d& point) const {
return false;
}
bool Path::is_on_path(const Box2d& box) const {
std::vector<Vec2d> corners;
box.GetAllCorners(&corners);
for (const auto& corner : corners) {
if (!is_on_path(corner)) {
return false;
}
}
return true;
}
bool Path::overlap_with(const common::math::Box2d& box, double width) const {
if (_use_path_approximation) {
return _approximation.overlap_with(*this, box, width);
......
......@@ -261,8 +261,6 @@ class Path {
bool get_width(const double s, double* left_width, double* right_width) const;
bool is_on_path(const common::math::Vec2d& point) const;
// requires all corners of the box on path.
bool is_on_path(const common::math::Box2d& box) const;
bool overlap_with(const common::math::Box2d& box, double width) const;
std::string debug_string() const;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册