Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. function zad([x1, y1, x2, y2, x, y]) {
  2.  
  3. if ((y == y1 || y == y2) && x <= x2 && x >= x1) {
  4. console.log("Border");
  5. }
  6. else if ((x == x1 || x == x2) && y >= y1 && y <= y2) {
  7. console.log("Border")
  8. }
  9. else {
  10. console.log("Inside / Outside");
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement