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

This commit is contained in:
Paul Davis 2013-12-09 17:24:34 -05:00
parent 77a63c2bf7
commit c4f0063a68
5 changed files with 50 additions and 17 deletions

View file

@ -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;
}