/[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 910 by gross, Fri Nov 24 10:04:09 2006 UTC revision 915 by gross, Thu Dec 14 06:12:53 2006 UTC
# Line 107  class Dilation(Transformation): Line 107  class Dilation(Transformation):
107         """         """
108         creates a dilation with a center an a given expansion/contraction factor         creates a dilation with a center an a given expansion/contraction factor
109         """         """
110         if not factor>0:         if not abs(factor)>0:
111            raise ValueError("factor must be positive.")            raise ValueError("factor must be non-zero.")
112         self.__factor=factor         self.__factor=factor
113         self.__center=numarray.array(center,type=_TYPE)         self.__center=numarray.array(center,type=_TYPE)
114      def __call__(self,x=numarray.zeros((3,))):      def __call__(self,x=numarray.zeros((3,))):

Legend:
Removed from v.910  
changed lines
  Added in v.915

  ViewVC Help
Powered by ViewVC 1.1.26