See Section 13.9.1 for squares in the plane.
The square command creates squares.
Examples.
| A:= point(0,0,0); |
| B:= point(3,3,3); |
| P:= point(0,0,3); |
| square(A,B,P) |
| A:= point(0,0,0); B:= point(3,3,3); P:= point(0,0,3); square(A,B,P,C,D) coordinates(C), coordinates(D) |
| ⎡ ⎢ ⎢ ⎣ |
| , |
| ,3 | √ |
| +3 | ⎤ ⎥ ⎥ ⎦ | , | ⎡ ⎢ ⎢ ⎣ | − |
| √ |
| ,− |
| √ |
| ,3 | √ |
| ⎤ ⎥ ⎥ ⎦ |