title: Points will create rectangle or not if yes then calculate area
body: <p>I have array of 4 points and I want to check whether these points will create a rectangle or not. If it will create a rectangle than calculate area of this.
  x,y value of point can be positive or negative or mix of it.</p>