function polygonInPolygon(v0,v1) {
    for (var i = 0; i < v0.length; i++) {
        if (pointInPolygon(v0[i], v1)) {
            return true;
        }
    }
    return false;
}
// first pass: all vertices inside v1

first pass: all vertices inside v1
first pass : all vertices inside v1
function polygonInPolygon(v0,v1) {
    for (var i = 0; i < v0.length; i++) {
        if (pointInPolygon(v0[i], v1)) {
            return true;
        }
    }
    return false;
}
function polygonInPolygon ( v0 , v1 ) { for ( var i = 0 ; i < v0 . length ; i ++ ) { if ( pointInPolygon ( v0 [ i ] , v1 ) ) { return true ; } } return false ; }
first pass: all vertices inside v1
first pass : all vertices inside v1