title: How do I find the reflection of a line over a line?
body: <p>I have two line assume one is Ray and another is a wall. So when Ray hit the wall it reflects back. I want to know the intersection point of Ray and wall and reflected line points or equation. The wall lines always perpendicular to x or y-axis.</p>
  
  <p>For Example, Ray line points are <code>(0, 2)</code> and <code>(3, 0)</code>. The wall points are <code>(0, 0)</code> and <code>(2, 1)</code>. I have to convert this to a Python program. So if anybody can explain in programming (specific algorithm) way that helps me a lot.</p>
  
  <p>Thanks in advance</p>