/** Return distance from wheelbase center to top corner */
float diag_radi();
+ /** Return distance from wheelbase center to rear corner */
+ float diag_rradi();
/** Outer radius of the farthest point */
float out_radi();
/** Angle between wheelbase line and outer radius */
return pow(xx + yy, 0.5);
}
+float BicycleCar::diag_rradi()
+{
+ float xx = pow(this->dr(), 2);
+ float yy = pow(this->width_ / 2, 2);
+ return pow(xx + yy, 0.5);
+}
+
float BicycleCar::out_radi()
{
return pow((pow(this->turning_radius_ + this->width_ / 2, 2) +