Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function calc(input) {
- let x = input[0];
- let y = input[1];
- let xMin = input[2];
- let xMax = input[3];
- let yMin = input[4];
- let yMax = input[5];
- if(x >= xMin && x <= xMax && y >= yMin && y <= yMax) {
- console.log('inside');
- }
- else {
- console.log('outside');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement