mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Ported Point->distance_to() and Line->length()
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user