(parking slot lines).
*/
bool collide();
+ /*! \brief Return parking direction
+
+ Return `true` if the direction of the parking in the
+ slot is forward.
+ */
+ bool forward();
/*! \brief Has current car `cc` left?
Return `true` if the current car `cc` left the parking
// init orientation
WVPASS(!psp.collide());
+ WVPASS(psp.forward());
WVPASSEQ_DOUBLE(psp.ps().heading(), psp.gc().h(), 0.00001);
// entry point found by reverse
// init orientation
WVPASS(!psp.collide());
+ WVPASS(!psp.forward());
WVPASSEQ_DOUBLE(psp.ps().heading() + M_PI / 2, psp.gc().h(), 0.00001);
// entry point found by reverse
// init orientation
WVPASS(!psp.collide());
+ WVPASS(psp.forward());
WVPASSEQ_DOUBLE(psp.ps().heading() - M_PI / 2, psp.gc().h(), 0.00001);
// entry point found by reverse