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