Magnification

class ipkiss3.all.Magnification

Scaling transformation with respect to a given point magnification_center, magnifying by magnification.

Parameters:
mirror_center: Coord2, optional

point mirror center, is incorporated in the default translation

mirror_plane_y: float, optional

y ordinate of x axis to mirror around

mirror_plane_x: float, optional

x abscissa of y axis to mirror around

magnification_center: Coord2, optional

magnification center, will be incorporated in the default translation

rotation_center: Coord2, optional

rotation center, will be incorporated in the default translation

absolute_rotation: optional
absolute_magnification: ( bool, bool_ or int ), optional
v_mirror: optional
magnification: optional
rotation: optional
translation: optional
apply_to_coord(coord)

apply transformation to coordinate

reverse_on_coord(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_length(length)

applies transformation to a distance

reverse_on_length(length)

applies reverse transformation to a distance

is_identity()

returns True if the transformation does nothing

is_isometric()

returns True if the transformation does nothing