X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hubacji1/bcar.git/blobdiff_plain/adfda73cebd95565ec835bd4cb3300996a1009a3..e64cf12f6645c1614d257ff0491f24d3ae99c3bc:/src/pslot.cc diff --git a/src/pslot.cc b/src/pslot.cc index ec88e63..773394b 100644 --- a/src/pslot.cc +++ b/src/pslot.cc @@ -259,6 +259,18 @@ ParkingSlot::fe(BicycleCar c, unsigned int& max) return pr; } +PoseRange +ParkingSlot::recompute_entry(PoseRange p) +{ + p.rotate(Point(0.0, 0.0), this->h()); + p.x(p.x() + this->lrx()); + p.y(p.y() + this->lry()); + if (!this->right()) { + p.reflect(this->entry_); + } + return p; +} + std::ostream& operator<<(std::ostream& o, ParkingSlot const& s) {