9 /*! \brief Parking Slot Planner basic class.
11 \param cc Current bicycle car.
12 \param ps Parking slot.
24 /*! \brief Find entry to the parking slot.
27 /*! \brief Find entry to slot by reverse approach.
29 See `Vorobieva2015` for more information.
34 BicycleCar &cc() { return this->cc_; }
35 BicycleCar &gc() { return this->gc_; }
36 ParkingSlot &ps() { return this->ps_; }
41 /*! \brief Return intersection of two line segments.
43 The output is tuple `std::tuple<bool, double, double>`, where the first
44 value is true when there is an intersection and false otherwise. The
45 second and third parameters in the return tuple are coordinates of the
48 \see https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection
50 \param x1 First line segment first `x` coordinate.
51 \param y1 First line segment first `y` coordinate.
52 \param x2 First line segment second `x` coordinate.
53 \param y2 First line segment second `y` coordinate.
54 \param x3 Second line segment first `x` coordinate.
55 \param y3 Second line segment first `y` coordinate.
56 \param x4 Second line segment second `x` coordinate.
57 \param y4 Second line segment second `y` coordinate.
59 std::tuple<bool, double, double> intersect(