提交 4c004afd 编写于 作者: L Liangliang Zhang 提交者: Jiangtao Hu

Control: fixed a bug in control.

上级 1c3a798f
......@@ -52,7 +52,9 @@ double Interpolation2D::Interpolate(const KeyType &xy) const {
auto itr_after = xyz_.lower_bound(xy.first);
auto itr_before = itr_after;
--itr_before;
if (itr_before != xyz_.begin()) {
--itr_before;
}
double x_before = itr_before->first;
double z_before = InterpolateYz(itr_before->second, xy.second);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册