//
#include "mirroraction.h"
+#include "applicationwindow.h"
#include "line.h"
+#include "mathconstants.h"
#include "painter.h"
//#include "vector.h"
painter->DrawLine(p1, p2);
painter->DrawHandle(p2);
- QString text = tr("Length: %1 in.");
- text = text.arg(Vector::Magnitude(p1, p2));
+ double absAngle = (Vector(p2 - p1).Angle()) * RADIANS_TO_DEGREES;
+// double absLength = Vector(position - endpoint).Magnitude();
+
+ QString text = QChar(0x2221) + QObject::tr(": %1");
+ text = text.arg(absAngle);
+// QString text = tr("Length: %1 in.");
+// text = text.arg(Vector::Magnitude(p1, p2));
painter->DrawInformativeText(text);
}
}
if (state == FIRST_POINT)
p1 = point;
else
+ {
p2 = point;
+ }
}