ipkiss3.all.Magnification

class ipkiss3.all.Magnification(magnification_center=(0.0, 0.0), magnification=1.0, absolute_magnification=False, **kwargs)

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

Parameters:

absolute_magnification: optional

magnification: optional

magnification_center: Coord2, optional

absolute_rotation: optional

rotation: optional

translation: optional

v_mirror: optional

mirror_center: Coord2, optional

mirror_plane_x: Real, number, optional

mirror_plane_y: Real, number, optional

rotation_center: Coord2, optional

apply_to_array(coords)

apply transformation to numpy array

apply_to_coord(coord)

apply transformation to coordinate

apply_to_length(length)

applies transformation to a distance

is_identity()

returns True if the transformation does nothing

is_isometric()

returns True if the transformation does nothing

reverse_on_array(coords)

internal use: applies reverse transformation to a numpy array

reverse_on_coord(coord)

apply reverse transformation to coordinate

reverse_on_length(length)

applies reverse transformation to a distance

set_magnification(value)
set_magnification_center(center)