title: Finding coordinate points of intersection with two numpy arrays
body: <p>This sort of question is a tad bit different the normal 'how to find the intersection of two lines' via numpy. Here is the situation, I am creating a program that looks at slope stability and I need to find where a circle intersects a line.</p>
  
  <p>I have two numpy arrays:</p>
  
  <p>One array gives me a normal (x, y) values of an elevation profile in 2D</p>
  
  <p>The other array is calculated values of coordinates (x, y) that spans the circumference of a circle from a defined centre.</p>
  
  <p>I need to somehow compare the two at what approximate point does the coordinates of the circle intersect the profile line?</p>
  
  <p>Here some data to work with:</p>
  
  <pre><code>circ_coords = np.array([
                          [.71,.71],
                          [0.,1.]
                         ])
  
  linear_profile = np.array([
                             [0.,0.],
                             [1.,1.]
                           ])
  </code></pre>
  
  <p>I need a function that would spit out say a single or multiple coordinate values saying that based on these circular coordinates and your linear profile.. the two would intersect here.</p>
  
  <pre><code>def intersect(array1, array2):
      # stuff
      return computed_array
  </code></pre>