Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function zad([x1, y1, x2, y2, x, y]) {
- if ((y == y1 || y == y2) && x <= x2 && x >= x1) {
- console.log("Border");
- }
- else if ((x == x1 || x == x2) && y >= y1 && y <= y2) {
- console.log("Border")
- }
- else {
- console.log("Inside / Outside");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement