mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 18:42:24 +00:00
Ported same_line() to XS
This commit is contained in:
@@ -54,6 +54,12 @@ Line::point_at(double distance) const
|
||||
return p;
|
||||
}
|
||||
|
||||
bool
|
||||
Line::coincides_with(const Line* line) const
|
||||
{
|
||||
return this->a.coincides_with(&line->a) && this->b.coincides_with(&line->b);
|
||||
}
|
||||
|
||||
#ifdef SLIC3RXS
|
||||
void
|
||||
Line::from_SV(SV* line_sv)
|
||||
|
||||
@@ -20,6 +20,7 @@ class Line
|
||||
double length() const;
|
||||
Point* midpoint() const;
|
||||
Point* point_at(double distance) const;
|
||||
bool coincides_with(const Line* line) const;
|
||||
|
||||
#ifdef SLIC3RXS
|
||||
void from_SV(SV* line_sv);
|
||||
|
||||
Reference in New Issue
Block a user