def reset_angle (   self,
  angle 
)

set the angle of the optic.  If angle is a scalar, it is an absolute rotation about the y axis.
Otherwise, angle should be a triple Euler angles theta (yaw), eta (roll around absolute z), phi(roll around local z)            

Definition at line 605 of file general_optics.py.

00605                                     :
00606                 """set the angle of the optic.  If angle is a scalar, it is an absolute rotation about the y axis.
00607                 Otherwise, angle should be a triple Euler angles theta (yaw), eta (roll around absolute z), phi(roll around local z)            
00608                 """
00609                 if type(angle) != types.TupleType: #convert conventional angle to rotation about y only
00610                         self.euler=euler(angle, 0, 0)
00611                         theta=angle
00612                 else: #this should be a triple angles theta (yaw), eta (roll around absolute z), phi(roll around local z)                       
00613                         self.euler=euler(angle[0], angle[1], angle[2])
00614                         theta=angle[0]
00615 
00616                 self.matrix_to_global=self.euler.mat
00617                 self.matrix_to_local=Numeric.transpose(self.euler.mat)
00618                 self.cosines=self.transform_into_global(Numeric.array((0,0,1)))
00619         
        def old_rotate_in_local_frame(self, matrix_to_global):


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