### 11.15.2 Translations in the plane: translation

See section 12.14.2 for translations in space.

The translation command can take one or two arguments.

If translation has a single argument, that argument is the translation vector. The translation vector can be given as a vector, list of coordinates, a difference of points or a complex number. translation returns a new command which performs the translation.
Input:

t := translation(1+i)

then:

t(-2)

Output:

If translation has two arguments, the first argument is a translation vector as above, and the second argument is a geometric object. translation returns and draws the translated object.
Input:

translation([1,1],line(-2,-i))

Output: