Question 319080
You're assuming that the diagonal of the square runs from (0,0) to (5,5) (like in the black square).
What if the line from (0,0) to (5,5) is the side of the square (like in the blue square)?
.
.
.
{{{drawing(300,300,-2,12,-5,9,
circle(0,0,0.5),
circle(5,5,0.5),
line(0,0,5,5),
line(0,0,0,5),
line(0,5,5,5),
line(5,5,5,0),
blue(line(0,0,5,5)),
blue(line(5,5,10,0)),
blue(line(10,0,5,-5)),
blue(line(5,-5,0,0)),
graph(300,300,-2,12,-5,9,0))}}}