private boolean isBetween(final Point obj) {
        if (((a.x <= obj.x && obj.x <= b.x) || (a.x >= obj.x && obj.x >= b.x))
                && ((a.y <= obj.y && obj.y <= b.y) || (a.y >= obj.y && obj.y >= b.y))) {
            return true;
        }
        return false;
    }