mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
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:
parent
77a63c2bf7
commit
c4f0063a68
5 changed files with 50 additions and 17 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue