Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function definePointPosition(array) {
- for (let i = 0; i < array.length; i += 3) {
- let [x,y,z] = ([array[i], array[i+1], array[i+2]]);
- if (x >= 10 && x <= 50) {
- if (y >= 20 && y <= 80) {
- if (z >= 15 && z <= 50) {
- console.log("inside");
- }
- }
- } else {
- console.log("outside");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment