HMirror
- ipkiss3.all.HMirror(mirror_plane_x=None)
Horizontal mirror around an axis or plane with constant x.
- Parameters:
- mirror_plane_x: float, optional
The x abscissa of y-axis to mirror around, is incorporated in the default translation. Default is 0.0.
- Returns:
- A NoDistortTransform object
Examples
import ipkiss3.all as i3 import pylab as plt sh = i3.Shape([(0.0, 2.0), (4.0, 2.0), (11.0, 3.0), (16.0, 9.0), (6.0, 6.0), (0.0, 6.0)]) sh2 = sh.transform_copy(i3.HMirror(mirror_plane_x=0.0)) plt.plot(sh.x_coords(), sh.y_coords(), 'bo-') plt.plot(sh2.x_coords(), sh2.y_coords(), 'ro-') plt.axvline(x=0.0, linestyle='dashed') plt.show()