Utilities to perform operations on (polar, azimuthal) vectors.
    | 
       
     | 
      
        
          rotate_euler(sph_coords,
        alpha,
        beta,
        gamma) 
      Take an Nx2 array of N (theta, phi) vectors on the unit sphere (that 
      is, (polar, azimuthal) angles in radians) and apply rotations through
      the Euler angles alpha, beta, and gamma in radians, using the ZXZ 
      convention. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          new_z_to_euler(new_z) 
      From the new Z axis expressed in (polar, azimuthal) angles of the 
      initial coordinate system, return the (alpha, beta) Euler angles that
      rotate the old Z axis (0, 0) to the new Z axis. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          _abs_diff(c) 
      For some angular difference c = |a - b| in radians, find the 
      magnitude of the difference, taking into account the wrap-around at 
      2*pi. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          _archaversine(h) 
      Compute the inverse of the _haversine function, using clip as 
      protection for the antipodes. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          fisher_rvs(mu,
        kappa,
        size=1) 
      Return a random (polar, azimuthal) angle drawn from the Fisher
distribution. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          fisher_pdf(theta,
        kappa) 
      Return the PDF of theta, the opening angle of X with respect to mu 
      where X is Fisher-distributed about mu. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     |