mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Ported contains_line() to XS
This commit is contained in:
parent
bd62de7653
commit
a225a8b2ef
10 changed files with 97 additions and 67 deletions
|
@ -1,8 +1,17 @@
|
|||
#include "Line.hpp"
|
||||
#include "Polyline.hpp"
|
||||
#include <algorithm>
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
Line::operator Polyline() const
|
||||
{
|
||||
Polyline pl;
|
||||
pl.points.push_back(this->a);
|
||||
pl.points.push_back(this->b);
|
||||
return pl;
|
||||
}
|
||||
|
||||
void
|
||||
Line::scale(double factor)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue