10 /*! \brief Parking slot basic class.
12 * This class contains some geometrical computations of parking slot. Parking
13 * slot consists of 4 cartesian coordinates `border` representing the border of
24 /*! \brief Set parking slot.
26 \param p Point with `x`, `y` coordinates of entry side's corner.
27 \param h Direction of the entry side.
28 \param W The width of the slot.
29 \param L The length of the slot.
31 ParkingSlot(Point p, double h, double W, double L);
33 /*! Get slot's left front x coordinate. */
36 /*! Get slot's left front y coordinate. */
39 /*! Get slot's left rear x coordinate. */
42 /*! Get slot's left rear y coordinate. */
45 /*! Get slot's right rear x coordinate. */
48 /*! Get slot's right rear y coordinate. */
51 /*! Get slot's right front x coordinate. */
54 /*! Get slot's right front y coordinate. */
57 /*! Return parking slot's orientation. */
60 /*! Return `true` for the parallel parking slot. */
61 bool parallel() const;
63 /*! Return `true` for the parking slot on the right side. */
66 /*! Change side of the parking slot. */
69 friend std::ostream& operator<<(std::ostream& o, ParkingSlot const& s);
73 #endif /* BCAR_PSLOT_H */