ipkiss3.all.Stretch

class ipkiss3.all.Stretch(**kwargs)

Non-homothetic scaling.

Parameters:

stretch_factor: required

stretch_center: Coord2, optional

apply_to_array(coords)

apply transformation to numpy array

apply_to_coord(coord)

apply transformation to coordinate

is_homothetic()

returns True if the transformation conserves angles

is_identity()

returns True if the transformation does nothing

is_isometric()

returns True if the transformation conserves angles and distances

reverse_on_array(coords)

internal use: applies reverse transformation to a numpy array

reverse_on_coord(coord)

apply reverse transformation to coordinate

set_stretch_factor(value)