X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrack.h;h=3ae5d602295dcd1fdcbf074b8d47880e8d5e45c8;hb=3051264c306adc12b6028061a3257f523c211f81;hp=8f75f78fc1c093f94e83f74e70a5518b1f378aa3;hpb=f8a7788cee0261babfc4c804a58515aad6dfbc3d;p=r2c2.git diff --git a/source/libr2c2/track.h b/source/libr2c2/track.h index 8f75f78..3ae5d60 100644 --- a/source/libr2c2/track.h +++ b/source/libr2c2/track.h @@ -1,17 +1,10 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #ifndef LIBR2C2_TRACK_H_ #define LIBR2C2_TRACK_H_ #include #include #include -#include +#include #include "geometry.h" namespace R2C2 { @@ -23,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 &); @@ -88,6 +81,9 @@ 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 &); void save(std::list &) const; private: