/*! Return Euclidean distance to `p`. */
double edist(Point const& p) const;
+ /*! Return length of arc between two points when radius is kwown.
+ *
+ * \see https://math.stackexchange.com/questions/1595872/arclength-between-two-points-on-a-circle-not-knowing-theta
+ */
+ double arc_len(Point const& p, double r);
+
/*! Generate output for plotting with gnuplot. */
void gen_gnuplot_to(std::ostream& out);
void h(double h);
/*! Set pose (`x`, `y`, and `h`.) */
- void set_pose(Pose const& p);
+ void set_pose_to(Pose const& p);
void rotate(Point const& c, double const angl);
* \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. */