def globalize (   self,
  optic 
)

Definition at line 364 of file general_optics.py.

00364                                   :     
00365                 "undo the localizing transform.  Typically called by an optic after it has applied itself to us in its preferred coordinate system"
00366                 ar=Numeric.array
00367                 dot=Numeric.dot
00368                 tr=Numeric.transpose
00369                 
00370                 cm=dot(optic.matrix_to_local, self.matrix_to_global)
00371                 cm2=ar(cm[0:2,0:2])
00372                 a,b,c,d=tuple(cm2.flat)
00373                 cm2inv=ar(((d,-b),(-c,a)))/(a*d-b*c)
00374                 self.q.transform(cm2inv)        
00375                 self.polarization=dot(cm2inv, self.local_polarization)
00376                 
00377                 del self.local_x0, self.local_direction, self.localize_tensor_transform, self.local_polarization
00378                 


Generated on Wed Nov 21 10:18:32 2007 for analysis by  doxygen 1.5.4