Class Zig_zag
source code
  
  
The class for the zig-zag cone.
  The cone is defined by:
   phi_max = c * asin(cos(theta*2)) + a,
  where:
   c = (phi_x - phi_y)/2,
   a = (phi_x + phi_y)/2,
  and where phi_max is the maximum polar angle for the given azimuthal 
  angle theta, phi_x is the maximum cone angle along the x-eigenvector, and
  phi_y is that of the y-eigenvector.  The cone axis is assumed to be the 
  z-axis.  The maximum cone opening angle allowed is pi/2.
    | 
       
     | 
      
      
     | 
  
    | 
      float
     | 
      
        
          phi_max(self,
        theta) 
      Return the maximum polar angle phi for the given azimuthal angle 
      theta. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
      float
     | 
      
        
          theta_max(self,
        phi,
        theta_min=0.0,
        theta_max=6.28318530718) 
      Return the maximum azimuthal angle theta for the given polar angle 
      phi. | 
          
            source code
            
           | 
         
       
      
     | 
  
  
    | 
     Inherited from Base:
      limit_check
       
     | 
  
| 
  
  
   Set up the cone object. 
  
    - Parameters:
 
    
        phi_x (float) - The maximum cone angle along the x-eigenvector. 
        phi_y (float) - The maximum cone angle along the y-eigenvector. 
      
    - Overrides:
        Base.__init__
    
 
   
 | 
 
| 
  
  
   Return the maximum polar angle phi for the given azimuthal angle 
  theta. 
  
    - Parameters:
 
    
        theta (float) - The azimuthal angle. 
      
    - Returns: float
 
        - The maximum polar angle phi for the value of theta.
 
   
 | 
 
  
  
  theta_max(self,
        phi,
        theta_min=0.0,
        theta_max=6.28318530718)
  
   | source code 
     | 
    
  
  Return the maximum azimuthal angle theta for the given polar angle 
  phi. 
  
    - Parameters:
 
    
        phi (float) - The polar angle. 
        theta_min (float) - The lower limit of the azimuthal angle range for complex 
          distributions. 
        theta_max (float) - The upper limit of the azimuthal angle range for complex 
          distributions. 
      
    - Returns: float
 
        - The maximum azimuthal angle theta for the value of phi.
 
   
 |