bool _intersectWithY(Line2I nLine) { int x_ = default(int); int x0_ = default(int); int x1_ = mPoint._getY(); int x2_ = mPoint._getY() + mSize._getHeight(); if (((nLine._begY() < x1_) && (nLine._endY() > x1_)) || ((nLine._begY() > x1_) && (nLine._endY() < x1_))) { x_ = x1_; } if (((nLine._begY() < x2_) && (nLine._endY() > x2_)) || ((nLine._begY() > x2_) && (nLine._endY() < x2_))) { x0_ = x2_; } if ((x_ == default(int)) && (x0_ == default(int))) { return false; } int y1_ = mPoint._getX(); int y2_ = mPoint._getX() + mSize._getWidth(); int y_ = default(int); if (x_ != default(int)) { y_ = nLine._xPoint(x_); } int y0_ = default(int); if (x0_ != default(int)) { y0_ = nLine._xPoint(x0_); } if ((y_ > y1_) && (y_ < y2_)) { return true; } if ((y0_ > y1_) && (y0_ < y2_)) { return true; } return false; }