Bugfix: medial axis missed some segments. #2144

This commit is contained in:
Alessandro Ranellucci 2014-08-03 15:03:11 +02:00
parent e897fbbd51
commit 30fa055995
6 changed files with 48 additions and 8 deletions

View file

@ -100,6 +100,14 @@ Line::atan2_() const
return atan2(this->b.y - this->a.y, this->b.x - this->a.x);
}
double
Line::orientation() const
{
double angle = this->atan2_();
if (angle < 0) angle = 2*PI + angle;
return angle;
}
double
Line::direction() const
{