vendredi 16 février 2018

trying to test a function I made Only have 1 line to add, but not sure what it is here is the code

function test(){
var results = [[0],[1],[1]]
var testarr = [
[[0,1],[.2,0]],
[[.3,1],[.5,0]],
[[0,1],[.2,.8]]
]; 
var clickCoord = [[.2,.2],[.3,.7],[.4,.1]]; 
for ( var i = 0;i < clickCoord.length; i++){
    if(
        RegCheck (tessarr,clickCoord[i])== results [i]
     ){

     }
} 

}

any suggestions to add in the {} of the if statement. not sure how to get it to tell me if it is true or false

Aucun commentaire:

Enregistrer un commentaire