a lot of work on th map-creator
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
namespace CFG {
|
||||
const float MOVE_SNAP_SIZE_M = 0.1f; // in meter (= map-space)
|
||||
const int SEL_THRESHOLD_SIZE_PX = 15; // in screen-pixels (-> should depend on the current zoom)
|
||||
const QColor FOCUS_COLOR = Qt::black;
|
||||
const QColor UNFOCUS_COLOR = Qt::gray;
|
||||
const QColor SEL_COLOR = Qt::blue;
|
||||
}
|
||||
|
||||
@@ -52,7 +54,9 @@ public:
|
||||
} else {
|
||||
|
||||
// no cut detected
|
||||
return 9999999;
|
||||
const float d1 = p1.getDistance(dst);
|
||||
const float d2 = p2.getDistance(dst);
|
||||
return std::min(d1, d2);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user