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:
then:
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:
Output:
Input:
Output: