X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrack.h;h=8f75f78fc1c093f94e83f74e70a5518b1f378aa3;hb=f8a7788cee0261babfc4c804a58515aad6dfbc3d;hp=82365a5ab02127ed5a0742e567bae153bf546cbd;hpb=460c64181aca1a134d74cb15ea4ad3bb4f275b60;p=r2c2.git diff --git a/source/libr2c2/track.h b/source/libr2c2/track.h index 82365a5..8f75f78 100644 --- a/source/libr2c2/track.h +++ b/source/libr2c2/track.h @@ -40,7 +40,7 @@ private: Layout &layout; const TrackType &type; Block *block; - Point pos; + Vector pos; float rot; float slope; bool flex; @@ -60,11 +60,11 @@ public: void set_block(Block *); Block &get_block() const; - void set_position(const Point &); + void set_position(const Vector &); void set_rotation(float); void set_slope(float); void set_flex(bool); - const Point &get_position() const { return pos; } + const Vector &get_position() const { return pos; } float get_rotation() const { return rot; } float get_slope() const { return slope; } bool get_flex() const { return flex; } @@ -78,10 +78,10 @@ public: unsigned get_active_path() const { return active_path; } int get_endpoint_by_link(Track &) const; - Point get_endpoint_position(unsigned) const; + Vector get_endpoint_position(unsigned) const; float get_endpoint_direction(unsigned) const; bool snap_to(Track &, bool, float = 0); - bool snap(Point &, float &) const; + bool snap(Vector &, float &) const; void break_link(Track &); void break_links(); const std::vector &get_links() const { return links; }