mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Ported point_line_distance() and removed same_point()
This commit is contained in:
parent
09be25a156
commit
c133a33ed2
6 changed files with 29 additions and 26 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue