Previous Up Next

26.14.6  Similarity in the plane

See Section 27.12.6 for similarities in space.

The similarity command creates a command to rotate and scale about a given point.

Example

s:=similarity(i,2,-pi/3); S1:=square(1-2i,2+i); S2:=s(S1)

or:

S1:=square(1-2i,2+i); S2:=similarity(i,2,-pi/3,S1)

Note that for a point P and real numbers r and θ, the command similarity(P,r) is the same as homothety(P,k*exp(i*a)).


Previous Up Next