Guest User

Untitled

a guest
Nov 24th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. public bool isRectangle(Coords coords)
  2.         {
  3.             if (coords.leftDown.Y == coords.rightDown.Y)
  4.                 if (coords.leftUp.Y == coords.rightUp.Y)
  5.                     if (coords.leftDown.X == coords.leftDown.X)
  6.                         if (coords.rightDown.X == coords.rightUp.X)
  7.                             return true;
  8.             return false;
  9.  
  10.         }
Add Comment
Please, Sign In to add comment