Table of Contents

Class: transform3d ../bkchem/transform3d.py

this class provides basic higher-level interface for coordinate transforms

Methods   
__init__
map_transform
set_move
set_rotation
set_rotation_x
set_rotation_y
set_rotation_z
set_scaling
set_scaling_xyz
transform_list
transform_xy
transform_xy_flat_list
transform_xyz
  __init__ 
__init__ ( self,  mat=None )

  map_transform 
map_transform ( self,  l )

this method can be used with map() function

  set_move 
set_move (
        self,
        dx,
        dy,
        dz,
        )

add an moving step to transformation matrix

  set_rotation 
set_rotation (
        self,
        xa,
        ya,
        za,
        )

add an rotation step to transformation matrix

  set_rotation_x 
set_rotation_x ( self,  xa )

  set_rotation_y 
set_rotation_y ( self,  ya )

  set_rotation_z 
set_rotation_z ( self,  za )

  set_scaling 
set_scaling ( self,  scale )

add an scaling step to transformation matrix, same scaling for both dimensions

  set_scaling_xyz 
set_scaling_xyz (
        self,
        mx,
        my,
        mz,
        )

add an scaling step to transformation matrix

  transform_list 
transform_list ( self,  l )

  transform_xy 
transform_xy (
        self,
        x,
        y,
        )

is used only for compatibility with 2D transform, assumes z=0, should be used only in cases where it is sure that starting and result positions have z0 (pi rotation around one axis etc.)

  transform_xy_flat_list 
transform_xy_flat_list ( self,  coords )

ONLY X,Y TRANSFORM, for compatibility with 2D transform!!!, transforms a list that cointains alternating x,y values (not list of pairs as self.transform_list)

  transform_xyz 
transform_xyz (
        self,
        x,
        y,
        z,
        )


Table of Contents

This document was automatically generated on Tue Dec 12 13:46:43 2006 by HappyDoc version 2.1