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

@ -32,6 +32,8 @@ public:
void render (Rect const & area, Cairo::RefPtr<Cairo::Context>) const;
void set (Points const &);
bool covers (Duple const &) const;
protected:
void render_path (Rect const &, Cairo::RefPtr<Cairo::Context>) const;
void render_curve (Rect const &, Cairo::RefPtr<Cairo::Context>) const;