I am currently working on a project on Matlab and I need to find the coordinates of a point which is reflected about a line. I know how to do it in 2D but in 3D things are getting ugly.
So, we have a line which goes through two points $A(x_1, y_1, z_1)$ and $B(x_2, y_2, z_2)$. $P_1(x_0, y_0, z_0)$ is reflected about that line and i need to find the coordinates of reflection of P1.
Assume a point on the line in parametric form and use the fact that the line from it to P is perpendicular to line.
Remember the formula for perpenducular direction ratios? Then apply mid-point theorem. What is the mid point of what here?