X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Fmeasure.h;h=c5696984fc32aba12b20ca37cfae8103efddff65;hb=7a36d396eded897c421424905b2c938d770df341;hp=022c3140639427367b6c4d1d86b42655f1aacfa1;hpb=14116fc9bbbd118f0be564c4e14ec00bfab26d24;p=r2c2.git diff --git a/source/designer/measure.h b/source/designer/measure.h index 022c314..c569698 100644 --- a/source/designer/measure.h +++ b/source/designer/measure.h @@ -3,6 +3,7 @@ #include #include +#include "libr2c2/geometry.h" class Designer; @@ -26,7 +27,7 @@ private: R2C2::Snap ssnap; float par_dist; float perp_dist; - float adiff; + R2C2::Angle adiff; State state; Msp::GL::Mesh mesh; @@ -34,7 +35,7 @@ public: Measure(Designer &); float get_parallel_distance() const { return par_dist; } float get_perpendicular_distance() const { return perp_dist; } - float get_angle_difference() const { return adiff; } + const R2C2::Angle &get_angle_difference() const { return adiff; } void start(); void button_press(float, float, unsigned); void pointer_motion(float, float);