Reflections in the plane: reflection

### 13.15.3 Reflections in the plane: reflection

See Section 14.14.3 for reflections in space.

The reflection command creates a reflection.

- reflection takes one mandatory argument and one optional argument:
  - P, a point or a line.
  - Optionally, G, a geometric object.
- reflection(P) returns a new command which reflects about P.
- reflection(P,G) returns and draws the reflection of G about P.

Examples.

- Input:

  rf:= reflection(-1)
  rf(1+i)

  Output:
- Input:
  reflection(-1, 1+i)
  Output:
  Input:
  reflection(line(-1,i),1+i)
  Output: