title: How to reflect a line over another line
body: <p>For a collision algorithm I am developing, I need to find out how to reflect a line over another. </p>
  
  <p><strong>Line 1:</strong> </p>
  
  <pre><code>y=ax+b 
  </code></pre>
  
  <p><strong>Line 2:</strong> </p>
  
  <pre><code>y=cx+d 
  </code></pre>
  
  <p><strong>Line 3:</strong> </p>
  
  <pre><code>(a result of reflecting line 1 over line 2) y=ex+f
  </code></pre>
  
  <p>Is there any algebraic way to determine <code>e</code> and <code>f</code> in terms of <code>a</code>, <code>b</code>, <code>c</code>, and <code>d</code>?</p>