AlexTasev

Untitled

Sep 27th, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function definePointPosition(array) {
  2.     for (let i = 0; i < array.length; i += 3) {
  3.         let [x,y,z] = ([array[i], array[i+1], array[i+2]]);
  4.  
  5.         if (x >= 10 && x <= 50) {
  6.             if (y >= 20 && y <= 80) {
  7.                 if (z >= 15 && z <= 50) {
  8.                     console.log("inside");
  9.                 }
  10.             }
  11.         } else {
  12.             console.log("outside");
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment