public boolean yInInterval(int t, int b) {
        int ty = this.higherVertex().centerX();
        int by = this.lowerVertex().centerX();
        if(ty > t && ty < b) return true;
        if(by > t && by < b) return true;
        if(ty < t && by > b) return true;
        return false;
    }