plottools
homothety
scale PLOT and PLOT3D data structures with the same ratio
Calling Sequence
Parameters
Description
Examples
homothety(p, a, pt_2d)
homothety(q, a, pt_3d)
p
-
plot data structure
q
plot3d data structure
a
real number
pt_2d
(optional) list of two real numbers specifying the center of the homothety (for the 2-D case)
pt_3d
(optional) list of three real numbers specifying the center of the homothety (for the 3-D case)
The homothety command is a special case of the plottools:-scale command where the ratios of the scaling with respect to the axis are the same.
There are several other commands in the plottools package that transform plots, and these are listed in the plottools help page. The plots:-changecoords and plots:-display commands can also be used to transform plots.
Homothety of a stellated icosahedron
with⁡geom3d:
icosahedron⁡p1,point⁡o,0,0,0,1:
stellate⁡p2,p1,10:
p≔draw⁡p2:
q≔plottools:-homothety⁡p,3:
with⁡plottools:
plots:-display⁡p,q,scaling=constrained,lightmodel=light4,orientation=0,32
See Also
plot/structure
plot3d/structure
plots:-changecoords
plots:-display
plottools:-scale
Download Help Document