jeya pandi

jeya pandi

  • NA
  • 62
  • 18.9k

How to create Rectangle from four coordinates points

Jun 16 2017 2:26 AM
Hi,
  I have a four coordinates points  like A(x1,y1),B(x2,y2) ,C(X3,y3),D(x4,y4) but  i need to create  rectangle from four points like (Rectangle rect =new Rectangle(x,y,width,height)).i need to draw the rectangle using Rect function not by points.How to achieve this.Please provide suggestions to this.Thanks in advance.

Answers (7)