Fixed error in porting causing wrong moves with avoid_crossing_perimeters

This commit is contained in:
Alessandro Ranellucci 2015-12-19 14:49:29 +01:00
parent 9dc0514844
commit 667a121ddb
6 changed files with 16 additions and 8 deletions

View file

@ -305,6 +305,14 @@ operator<<(std::ostream &stm, const Pointf &pointf)
return stm << pointf.x << "," << pointf.y;
}
std::string
Pointf::wkt() const
{
std::ostringstream ss;
ss << "POINT(" << this->x << " " << this->y << ")";
return ss.str();
}
void
Pointf::scale(double factor)
{