*/
PoseRange fe(BicycleCar c, unsigned int& max);
+ /*! \brief Recompute zero slot's `PoseRange` entry for `this`.
+ *
+ * The _zero_ slot is the `ParkingSlot(Point(0.0, 0.0), 0.0, W, L);`.
+ *
+ * \param p Computed `PoseRange` entry.
+ */
+ PoseRange recompute_entry(PoseRange p);
+
friend std::ostream& operator<<(std::ostream& o, ParkingSlot const& s);
};
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)
{