* \see https://www.ma.rhul.ac.uk/SRBparking
*/
double perfect_parking_slot_len() const;
+
+ /*! Set parameters to what car. */
+ void become(std::string const what);
};
/*! Store car motion. */
return this->len() + sqrt(s) - l - k;
}
+void
+CarSize::become(std::string const what)
+{
+ if (what == "porsche cayenne") {
+ this->ctc(11.2531);
+ this->wwm(2.194);
+ this->w(1.983);
+ this->wb(2.895);
+ this->df(this->wb() + 0.936);
+ this->len(4.918);
+ this->ft(1.680);
+ } else if (what == "chrysler pacifica") {
+ this->ctc(9.557619159602458);
+ this->wwm(2.297);
+ this->w(2.022);
+ this->wb(3.089);
+ this->df(4.236);
+ this->len(5.171);
+ this->ft(1.748);
+ } else { // renault zoe
+ this->ctc(10.802166641822163);
+ this->wwm(1.945);
+ this->w(1.771);
+ this->wb(2.588);
+ this->df(3.427);
+ this->len(4.084);
+ this->ft(1.511);
+ }
+}
+
double
CarMove::sp() const
{