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
{
if (opts.CRA_POINT || opts.CAR_POINT) {
Point::gen_gnuplot_to(out);
}
+ if (opts.LRA_POINT) {
+ this->lra().gen_gnuplot_to(out);
+ }
+ if (opts.RRA_POINT) {
+ this->rra().gen_gnuplot_to(out);
+ }
if (opts.LEFT) {
this->lf().gen_gnuplot_to(out);
this->lr().gen_gnuplot_to(out);