diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-12-09 17:24:34 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-12-09 17:24:34 -0500 |
commit | c4f0063a68d189a59450a5bba658fc3092bc936b (patch) | |
tree | 6cf98672e9897a32d90e921a452d56e5efc49567 /libs/canvas/curve.cc | |
parent | 77a63c2bf75d4c8fa6948981a246806453bef95c (diff) |
make PolyLine use distance_to_segment_squared(), and add separate (null, for now) method Curve::covers(Duple) because the math there needs to be different, maybe
Diffstat (limited to 'libs/canvas/curve.cc')
-rw-r--r-- | libs/canvas/curve.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/canvas/curve.cc b/libs/canvas/curve.cc index 5bbd33799d..df65cf491c 100644 --- a/libs/canvas/curve.cc +++ b/libs/canvas/curve.cc @@ -103,6 +103,8 @@ Curve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const void Curve::render_path (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const { + std::cerr << whatami() << '/' << name << " render curve w/" << _points.size() << " points, " << first_control_points.size() << " first and " + << second_control_points.size() << " second\n"; PolyItem::render_curve (area, context, first_control_points, second_control_points); } @@ -209,3 +211,9 @@ Curve::solve (std::vector<double> const & rhs) return x; } + +bool +Curve::covers (Duple const & point) const +{ + return false; +} |