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,))): |