IdentityTransform

class ipkiss3.all.IdentityTransform(**kwargs)

Transform that leaves an object unchanged.

Parameters
translation: Coord2, optional

translation, should include any translation required to represent a transformation which is not around the origin

absolute_rotation: ( bool, bool_, bool or int ), optional
absolute_magnification: ( bool, bool_, bool or int ), optional
magnification: optional
rotation: optional
v_mirror: optional
magnification_center: Coord2, optional

magnification center, will be incorporated in the default translation

mirror_center: Coord2, optional

point mirror center, is incorporated in the default translation

mirror_plane_x: float, optional

x abscissa of y axis to mirror around

mirror_plane_y: float, optional

y ordinate of x axis to mirror around

rotation_center: Coord2, optional

rotation center, will be incorporated in the default translation

apply(item)

applies the transform to the transformable item (no copy)

reverse(item)

applies the reverse transformation on item

apply_to_coord(coord)

apply transformation to coordinate

reverse_on_coord(coord)

apply reverse transformation to coordinate

apply_to_coord3(coord)

apply transformation to coordinate

reverse_on_coord3(coord)

apply reverse transformation to coordinate

apply_to_array(coords)

apply transformation to numpy array

reverse_on_array(coords)

internal use: applies reverse transformation to a numpy array

apply_to_array3(coords)

apply transformation to numpy array

reverse_on_array3(coords)

internal use: applies reverse transformation to a numpy array

is_identity()

returns True if the transformation does nothing