public bool _isSelect(int nX, int nY, int nDistance = 3) { Rect2I rect_ = new Rect2I(mBeg, mEnd); rect_._offset(-nDistance, -nDistance); rect_._sizeOffset(nDistance * 2, nDistance * 2); if (!rect_._contain(nX, nY)) { return false; } double distance_ = this._distance(nX, nY); if (distance_ < nDistance) { return true; } return false; }