+ Real mag;
+ if (App::restrict_radius_ducks)
+ {
+ Point point((*iter)->get_trans_point());
+ Point origin((*iter)->get_trans_origin());
+
+ if ((point[0] - origin[0]) * pw < 0) point[0] = origin[0];
+ if ((point[1] - origin[1]) * ph > 0) point[1] = origin[1];
+
+ mag = (point-origin).mag();
+ }
+ else
+ mag = ((*iter)->get_trans_point()-(*iter)->get_trans_origin()).mag();
+
+ Distance real_mag(mag, Distance::SYSTEM_UNITS);