calculate a square's diagonal with a side length of 3*sqrt 2