return c;
}
+bool
+Point::inside_of(Point const& c, double const r) const
+{
+ double dx = this->x() - c.x();
+ double dy = this->y() - c.y();
+ return pow(dx, 2.0) + pow(dy, 2.0) < pow(r, 2.0);
+}
+
bool
Point::on_right_side_of(Line const& li) const
{
return this->_front_track;
}
+double
+CarSize::edist_to_rr() const
+{
+ return sqrt(pow(this->w() / 2.0, 2) + pow(this->len() - this->df(), 2));
+}
+
+double
+CarSize::edist_to_lf() const
+{
+ return sqrt(pow(this->w() / 2.0, 2) + pow(this->df(), 2));
+}
+
double
CarSize::mtr() const
{