I wanted to make an AI that makes the decision to shoot a reflecting laser towards the target accurately from it's position, reflecting from a stable, non moving smooth surface like a mirror.
One option is to rotate the ray until it finds the position to hit the mirror so that the laser hits the target after reflection. But I would like to consider more options apart from the apparent brute force method.
Then X will be the point where the AI should hit.
You can try out this link for finding the perpendicular intersection:
http://www.ambrsoft.com/TrigoCalc/Plan3D/PlaneLineIntersection_.htm