/[escript]/trunk/pycad/py_src/transformations.py
ViewVC logotype

Diff of /trunk/pycad/py_src/transformations.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 916 by gross, Fri Dec 15 08:25:57 2006 UTC revision 999 by gross, Tue Feb 27 08:12:37 2007 UTC
# Line 57  class Translation(Transformation): Line 57  class Translation(Transformation):
57         applies translation to x         applies translation to x
58         """         """
59         return numarray.array(x,_TYPE)+self.__b         return numarray.array(x,_TYPE)+self.__b
60          
61  class Rotatation(Transformation):  class Rotatation(Transformation):
62      """      """
63      defines a rotation      defines a rotation
64      """      """
65      def __init__(self,axis=numarray.zeros((3,),type=_TYPE),point=numarray.ones((3,),type=_TYPE),angle=0.*RAD):      def __init__(self,axis=numarray.ones((3,),type=_TYPE),point=numarray.zeros((3,),type=_TYPE),angle=0.*RAD):
66         """         """
67         creates a rotation using an axis and a point on the axis         creates a rotation using an axis and a point on the axis
68         """         """

Legend:
Removed from v.916  
changed lines
  Added in v.999

  ViewVC Help
Powered by ViewVC 1.1.26