Squares in the plane

### 26.8.1 Squares in the plane

See Section 27.7.1 for squares in space.

The square command creates squares.

- square takes two mandatory arguments and two optional arguments.
  - A,B, two points.
  - Optionally, varc, vard, two variable names.
- square(A,B ⟨,varc,vard ⟩) returns and draws the square ABCD, where the square is traversed counterclockwise.

  If the arguments varc and vard are given, then C and D will be assigned to them.

#### Examples

square(1-2i,2+i)

square(1-2i,2+i,C,D)

affix(C), affix(D)

−1+2 i,−2−i |  |  |  |  |  |  |  |  |  |