def intersect (   self,
  from_point,
  from_direction 
)

Reimplemented in spherical_mirror.

Definition at line 585 of file general_optics.py.

00585                                                        :
00586                 "find the intersection of a beam coming from from_point, going in from_direction, with our center. Raise an exception if beam won't hit center going that way."
00587                 a,x  =  planesolve(from_point, from_direction, self.center, self.cosines)  
00588                 
00589                 if a < -1e-9:
00590                         raise OpticDirectionError, "Optic found on backwards side of beam: "+str(self)+" incoming (x,y,z)="+\
00591                         Numeric.array_str(from_point, precision=3, suppress_small=1)+" cosines="+\
00592                         Numeric.array_str(from_direction, precision=3, suppress_small=1) + \
00593                         (" distance = %.3f, point=(%.3f %.3f %.3f)" % (a, x[0], x[1], x[2]))
00594                 return a, x
00595 
        def transport_to_here(self, beam):


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