X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Fmanipulator.h;fp=source%2Fdesigner%2Fmanipulator.h;h=1c46af6b6fd4c4eeae53bd197c87a198723f9acc;hb=7a36d396eded897c421424905b2c938d770df341;hp=12e551bb7a1da125a7c3365f4806271b5d561d2c;hpb=14116fc9bbbd118f0be564c4e14ec00bfab26d24;p=r2c2.git diff --git a/source/designer/manipulator.h b/source/designer/manipulator.h index 12e551b..1c46af6 100644 --- a/source/designer/manipulator.h +++ b/source/designer/manipulator.h @@ -2,6 +2,7 @@ #define MANIPULATOR_H_ #include +#include "libr2c2/geometry.h" class Designer; class Selection; @@ -22,7 +23,7 @@ private: { R2C2::Object *object; R2C2::Vector pos; - float rot; + R2C2::Angle rot; MObject(R2C2::Object *); }; @@ -50,8 +51,8 @@ private: R2C2::Vector gpointer; Mode mode; R2C2::Vector move_origin; - float angle; - float rot_origin; + R2C2::Angle angle; + R2C2::Angle rot_origin; float elev_origin; std::set neighbors; std::vector extend_tracks; @@ -75,7 +76,7 @@ private: void update_objects(); void update_neighbors(); void set_slope(TrackOrder &, float, float); - std::vector create_straight(const R2C2::Vector &, float, float, float); + std::vector create_straight(const R2C2::Vector &, const R2C2::Angle &, float, float); }; #endif