See section 12.15.3 for reflections in the plane.
The reflection command takes one or two arguments. The first argument is a point, line or plane. The second optional argument is a geometric object.
With one argument, reflection returns a command which
reflects an object across the point, line or plane.
Input:
then:
returns and draws the reflection of the point (1,2,4) across the point (1,1,1); namely (1,1,1) − [(1,2,4)−(1,1,1)] = (1,0,−2).
Given a second argument of a geometric object, reflection
returns and draws the reflected object.
Input:
returns and draws the reflection of the point (−1,2,4) across the line through (1,1,0) and (−1,−3,0); namely (16/5,3/5,−4).