mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Ported Point->distance_to() and Line->length()
This commit is contained in:
parent
c9f68ed28a
commit
e19c6a1494
7 changed files with 18 additions and 6 deletions
|
@ -30,6 +30,12 @@ Line::reverse()
|
|||
std::swap(this->a, this->b);
|
||||
}
|
||||
|
||||
double
|
||||
Line::length() const
|
||||
{
|
||||
return this->a.distance_to(&(this->b));
|
||||
}
|
||||
|
||||
void
|
||||
Line::from_SV(SV* line_sv)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue