  radiusX = _scaled.trRadiusX;
    radiusY = _scaled.trRadiusY;
  } else if (point.dx &gt; right - _scaled.brRadiusX &amp;&amp;
             point.dy &gt; bottom - _scaled.brRadiusY) {
    x = point.dx - right + _scaled.brRadiusX;
    y = point.dy - bottom + _scaled.brRadiusY;
    radiusX = _scaled.brRadiusX;
    radiusY = _scaled.brRadiusY;
  } else if (point.dx &lt; left + _scaled.blRadiusX &amp;&amp;
             point.dy &gt; bottom - _scaled.blRadiusY) {
    x = point.dx - left - _scaled.blRadiusX;
   