CMirror
- ipkiss3.all.CMirror(mirror_center=None)
Mirror around point
mirror_center
(= 180 degree turn).- Parameters:
- mirror_center: tuple[float, float] or Coord2, optional
The point mirror center, is incorporated in the default translation. Default is (0.0, 0.0).
- Returns:
- A NoDistortTransform object
Examples
import ipkiss3.all as i3 import pylab as plt sh = i3.Shape([(4.0, 2.0), (11.0, 3.0), (16.0, 9.0), (6.0, 6.0)]) sh2 = sh.transform_copy(i3.CMirror(mirror_center=(17.0, 10.0))) plt.plot(sh.x_coords(), sh.y_coords(), 'bo-') plt.plot(sh2.x_coords(), sh2.y_coords(), 'ro-') plt.scatter(17.0, 10.0) plt.show()