Definition at line 379 of file general_optics.py. 00379 : 00380 "transform the beam into a new coordinate system" 00381 ar=Numeric.array 00382 dot=Numeric.dot 00383 mat=dot(matrix, self.matrix_to_global) 00384 matl=[x/vec_mag(x) for x in mat] #make sure unit vectors stay that way! 00385 self.matrix_to_global=Numeric.array(matl) 00386 def update_q(self, optic):
|