def transform_q_to_table (   self,
  qi,
  up = (0,1 
)

Definition at line 460 of file general_optics.py.

00460                                                       :
00461                 "return qix, qiy (our inverse q parameter diagonal components) in a coordinate system relative to the direction 'up', if possible"
00462                 dot=Numeric.dot
00463                 tr=Numeric.transpose
00464                 ok, matrix=self.transformation_matrix_to_table(up)
00465                 if not ok : #z is not even close to perpendicular to up!
00466                         theta, qix, qiy=qi.qi_moments()
00467                         return qix, qiy #so just use principal moments  
00468                 else:
00469                         xyt=matrix[0:2,0:2]
00470                         qiprime=dot(xyt, dot(qi.qit, tr(xyt)))
00471                         return qiprime[0,0], qiprime[1,1]
00472 
class general_optic(object):


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