Commit ac560595 authored by Mike Kremer's avatar Mike Kremer
Browse files

Getting const ref as point parameter.

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b3b2cbde
......@@ -229,7 +229,7 @@ delete_control_point(int _idx)
template <class PointT>
set_control_point(int _idx, Point& _cp)
set_control_point(int _idx, const Point& _cp)
assert(_idx < (int)control_polygon_.size());
control_polygon_[_idx] = _cp;
......@@ -123,7 +123,7 @@ public:
void delete_control_point(int _idx);
/// reset a control point
void set_control_point(int _idx, Point& _cp);
void set_control_point(int _idx, const Point& _cp);
/// set whole control polygon
void set_control_polygon(std::vector< Point> & _control_polygon);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment