X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftracktype.h;h=7eb2bdc64d15bcfb4cbc853f14b23374583e1c1c;hb=d3a7a9e9ad694d52ccca8b6038501772fdc1dfd5;hp=9c4865f1ff3f655bd8578a98ae200ab46bc866d4;hpb=c5f5ec54e81a6a85f911fa1075a0939a7352fbfd;p=r2c2.git diff --git a/source/libr2c2/tracktype.h b/source/libr2c2/tracktype.h index 9c4865f..7eb2bdc 100644 --- a/source/libr2c2/tracktype.h +++ b/source/libr2c2/tracktype.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 */ @@ -20,7 +20,7 @@ class TrackType public: struct Endpoint { - Point pos; + Vector pos; float dir; // Direction outwards from the endpoint unsigned paths; @@ -68,6 +68,7 @@ public: const std::vector &get_endpoints() const { return endpoints; } const Endpoint &get_endpoint(unsigned) const; TrackPoint get_point(unsigned, unsigned, float) const; + bool collide_ray(const Vector &, const Vector &, float) const; private: void collect_endpoints();