X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrackpart.h;h=462290526eb6809bd2663304bbcd1a97cb2a1a75;hb=a20b8421d002629a9f4d97c0c378e9f9cb29e292;hp=0a07b4d0df857fabb90679e45f0582a05f4fb74d;hpb=1ff06c5bc46a677fa389ef86c6b26664368f1653;p=r2c2.git diff --git a/source/libr2c2/trackpart.h b/source/libr2c2/trackpart.h index 0a07b4d..4622905 100644 --- a/source/libr2c2/trackpart.h +++ b/source/libr2c2/trackpart.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #ifndef LIBR2C2_TRACKPART_H_ #define LIBR2C2_TRACKPART_H_ @@ -26,7 +19,7 @@ public: }; private: - Point pos; + Vector pos; float dir; float length; float radius; @@ -44,6 +37,7 @@ public: bool is_dead_end() const { return dead_end; } void check_link(TrackPart &); TrackPart *get_link(unsigned) const; + bool collide_ray(const Vector &, const Vector &, float) const; }; } // namespace R2C2