Reflection of a two dimensional figure in a line

We can see a triangle ABC in red color and a line ‘a’ in blue color. Equation of this line is y=mx+c and we can change the values of m and c using their respective slide bars. There is one more triangle A’B’C’ (green color). This triangle is the reflection of the triangle ABC in the line ‘a’.