X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrackpart.h;h=ebe353c34cfde4022586fbd9f2b3922f40a479ef;hb=45abb4c64c714cb655988a855158a22976f5e35f;hp=0a07b4d0df857fabb90679e45f0582a05f4fb74d;hpb=1ff06c5bc46a677fa389ef86c6b26664368f1653;p=r2c2.git diff --git a/source/libr2c2/trackpart.h b/source/libr2c2/trackpart.h index 0a07b4d..ebe353c 100644 --- a/source/libr2c2/trackpart.h +++ b/source/libr2c2/trackpart.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of R²C² -Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa +Copyright © 2006-2011 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -26,7 +26,7 @@ public: }; private: - Point pos; + Vector pos; float dir; float length; float radius; @@ -44,6 +44,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