Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool isRectangle(Coords coords)
- {
- if (coords.leftDown.Y == coords.rightDown.Y)
- if (coords.leftUp.Y == coords.rightUp.Y)
- if (coords.leftDown.X == coords.leftDown.X)
- if (coords.rightDown.X == coords.rightUp.X)
- return true;
- return false;
- }
Add Comment
Please, Sign In to add comment