Here is a brain teaser that I couldn't figure out. Can you help me:
In an enclosed area (your form), there should be located a number of points (no more than 4) through which a ray of light must pass. The light ray emerges in a specific direction from a fixed point.
The light is then deflected by reflection using a suitable number of plane mirrors.
NB: the angle of reflection of a ray of light must be equal to the angle of incidence of the ray to the mirror.
The simulated system must allow the user to place simulated mirrors in the enclosed area to reflect the light ray to follow a path that will make the ray illuminate all the designated fixed points. his means dynamically placing lines with mouse operations ,such as the mouse_down event, in the path of another line (beam).
As soon as a mirror is placed then the light beam will be reflected and thus change course.
Design two classes e.g. clsBeam and clsMirrors. Also try randomly generating the points. Although I've tried using it, it seems I have no control over its movements.