/** * Returns whether a point is inside the exit * * @param x * the horizontal positon * @param y * the vertical position * @return true if the point (x, y) is inside the exit, false otherwise */ public bool isPointInside(int x, int y) { if (rectangular) { return(x > getX0() && x < getX1() && y > getY0() && y < getY1()); } else { return(PolygonHelper.ContainsPoint(getPoints(), new Vector2(x, y))); } }