X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrack.h;h=3ae5d602295dcd1fdcbf074b8d47880e8d5e45c8;hb=e75f12451201fb6540ad2155e8796c2b5aee8d4c;hp=326c2e28e3d65fe479c4ddc1c2e694a79deae5e3;hpb=d15ac13f2e170f155b4bbd124df48400c339b644;p=r2c2.git diff --git a/source/libr2c2/track.h b/source/libr2c2/track.h index 326c2e2..3ae5d60 100644 --- a/source/libr2c2/track.h +++ b/source/libr2c2/track.h @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include "geometry.h" namespace R2C2 { @@ -16,7 +16,7 @@ class TrackType; class Track: public sigc::trackable { public: - class Loader: public Msp::DataFile::BasicLoader + class Loader: public Msp::DataFile::ObjectLoader { public: Loader(Track &); @@ -81,6 +81,7 @@ public: Track *get_link(unsigned) const; TrackPoint get_point(unsigned, unsigned, float) const; TrackPoint get_point(unsigned, float) const; + TrackPoint get_nearest_point(const Vector &) const; bool collide_ray(const Vector &, const Vector &);