Previous Up Next

12.15.3  Reflections in the plane: reflection

See section 13.14.3 for reflections in space.

The reflection command can take one or two arguments.

If reflection has a single argument, that argument is a point or line. reflection returns a new command which performs the reflection with respect to the point or line.
Input:

rf := reflection(-1)

then:

rf(1+i)

Output:

If reflection has two arguments, the first argument is a point or line as above, and the second argument is a geometric object. reflection returns and draws the reflection of the object.
Input:

reflection(-1, 1+i)

Output:

Input:

reflection(line(-1,i),1+i)

Output:


Previous Up Next