double wheelbase_ = 2.450;
double distance_to_front_ = 3.105;
double length_ = 3.760;
+ double _front_track = 1.625;
public:
/*! Get curb-to-curb distance. */
double ctc() const;
/*! Get distance from rear axle to rear. */
double dr() const;
+ /*! Set front track. */
+ void ft(double ft);
+
+ /*! Get front track. */
+ double ft() const;
+
/*! \brief Get minimum turning radius.
*
* Please, note that the method returns really _minimum turning radius_,
return this->len() - this->df();
}
+void
+CarSize::ft(double ft)
+{
+ this->_front_track = ft;
+}
+
+double
+CarSize::ft() const
+{
+ return this->_front_track;
+}
+
double
CarSize::mtr() const
{
auto ctc2 = pow(this->ctc() / 2.0, 2.0);
auto wb2 = pow(this->wb(), 2.0);
- return sqrt(ctc2 - wb2) - this->w() / 2.0;
+ return sqrt(ctc2 - wb2) - this->ft() / 2.0;
}
double