X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftracktype.h;h=dd2a7c4ddf29f83c67d8bed648382d449412db46;hb=e621dd4120cb253417167b4295e436cee095ccb0;hp=1b1c78ce998de86b736d252774643bce2346bfba;hpb=64340dad429ba4040538fc06b6882aabdb489925;p=r2c2.git diff --git a/source/libr2c2/tracktype.h b/source/libr2c2/tracktype.h index 1b1c78c..dd2a7c4 100644 --- a/source/libr2c2/tracktype.h +++ b/source/libr2c2/tracktype.h @@ -18,6 +18,9 @@ public: unsigned paths; Endpoint(float, float, float, unsigned); + + bool has_path(unsigned p) const { return paths&(1< @@ -61,6 +64,7 @@ public: const std::vector &get_endpoints() const { return endpoints; } const Endpoint &get_endpoint(unsigned) const; TrackPoint get_point(unsigned, unsigned, float) const; + TrackPoint get_nearest_point(const Vector &) const; bool collide_ray(const Vector &, const Vector &, float) const; private: