I have a point on the graph at position X,Y , and I have to draw a square around that point of side X m. I have described my problem in the image.
I have taken an example square of 3 m. The diagonal of this square is 4.24 m(approx). I need to find the coordinates of the sides of the square.