Ported point_line_distance() and removed same_point()

This commit is contained in:
Alessandro Ranellucci 2013-11-06 23:08:03 +01:00
parent 09be25a156
commit c133a33ed2
6 changed files with 29 additions and 26 deletions

View file

@ -60,6 +60,12 @@ Line::coincides_with(const Line* line) const
return this->a.coincides_with(&line->a) && this->b.coincides_with(&line->b);
}
double
Line::distance_to(const Point* point) const
{
return point->distance_to(this);
}
#ifdef SLIC3RXS
void
Line::from_SV(SV* line_sv)