Methods
|
|
|
|
__init__
|
__init__ ( self, mat=None )
|
|
get_scaling
|
get_scaling ( self )
computes the value of scaling from self
|
|
get_scaling_xy
|
get_scaling_xy ( self )
computes the scaling for x and y separately
|
|
map_transform
|
map_transform ( self, l )
this method can be used with map() function
|
|
set_move
|
set_move (
self,
dx,
dy,
)
add an moving step to transformation matrix
|
|
set_rotation
|
set_rotation ( self, angle )
add an rotation step to transformation matrix
|
|
set_scaling
|
set_scaling ( self, scale )
add an scaling step to transformation matrix, same scaling for both dimensions
|
|
set_scaling_xy
|
set_scaling_xy (
self,
mx,
my,
)
add an scaling step to transformation matrix
|
|
transform_4
|
transform_4 ( self, list )
for items that have 4 coordinates (lines, rectangles) this transforms 'em all
|
|
transform_list
|
transform_list ( self, l )
|
|
transform_xy
|
transform_xy (
self,
x,
y,
)
|
|
transform_xy_flat_list
|
transform_xy_flat_list ( self, coords )
transforms a list that cointains alternating x,y values (not list of pairs
as self.transform_list)
|