X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Flibr2c2%2Fobject.h;h=d36104fa3deed081c5ae26cb29cf89b4e3cf9606;hb=7a36d396eded897c421424905b2c938d770df341;hp=33b99a1443acb3b2f7452c8236e91354ab5ed8a4;hpb=14116fc9bbbd118f0be564c4e14ec00bfab26d24;p=r2c2.git diff --git a/source/libr2c2/object.h b/source/libr2c2/object.h index 33b99a1..d36104f 100644 --- a/source/libr2c2/object.h +++ b/source/libr2c2/object.h @@ -14,7 +14,7 @@ class Object protected: Layout &layout; Vector position; - float rotation; + Angle rotation; Object(Layout &l): layout(l) { } public: @@ -24,9 +24,9 @@ public: virtual const ObjectType &get_type() const = 0; Layout &get_layout() const { return layout; } virtual void set_position(const Vector &) = 0; - virtual void set_rotation(float) = 0; + virtual void set_rotation(const Angle &) = 0; const Vector &get_position() const { return position; } - float get_rotation() const { return rotation; } + const Angle &get_rotation() const { return rotation; } virtual Object *get_parent() const { return 0; } virtual unsigned get_n_snap_nodes() const { return 0; }