See section 12.14.6 for similarities in space.
The similarity command rotates and scales about a given point. It takes three or four arguments.
If similarity has three arguments, they are a point (the center
of rotation), a real number (the scaling ratio) and a real number
(the angle of rotation). similarity returns a new
command which performs the transformation.
Input:
then:
Output:
then:
Output:
If similarity has four arguments, the first three arguments are a
point and two numbers as above, and the fourth argument is a geometric
object. similarity returns and draws the transformed object.
Input:
Output:
Input:
Output:
Note that for a point A and numbers k and a, the command similarity(A,k,a) is the same as homothety(A,k*exp(i*a)).