VMirror

ipkiss3.all.VMirror(mirror_plane_y=None)

Vertical mirror around an axis or plane with constant y.

Parameters:
mirror_plane_y: float, optional

The y ordinate of x-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([(5.0, 2.0), (12.0, 3.0), (17.0, 9.0), (7.0, 6.0)])

sh2 = sh.transform_copy(i3.VMirror(mirror_plane_y=2.0))

plt.plot(sh.x_coords(), sh.y_coords(), 'bo-')
plt.plot(sh2.x_coords(), sh2.y_coords(), 'ro-')
plt.axhline(y=2.0, linestyle='dashed')
plt.show()