public boolean containsPoint(float x2, float y2) {
        if (x2 > getX() && x2 < getX() + getWidth()) {
            if (y2 > getY() && y2 < getY() + getHeight()) {
                return true;
            }
        }

        return false;
    }