I have in a 3D space a fixed light ray Lr
and a mirror M
that can rotate about the fixed point Mrot
, this point is not on the same plane of the mirror, in other words the mirror plane is tangent to a sphere centered in Mrot
with a fixed radius d
. With that configuration I want to find an equation that receives point P
as parameter and results with the rotation of the mirror in a 3D space.
We can consider that the mirror plane has no borders (infinite plane) and it's rotation have no limits. Also, the mirror reflects only on the opposite side of its rotation point.
In the picture are two cases with different input point P1
and P2
, with their respective solution angles alpha1
and alpha2
. The pictures are in 2D to simplify the drawings, the real case is in 3D.
At the moment I am calculating the intersection with the mirror plane in a random rotation, then calculate the ray reflection and see how far is from the point (P) I want to reach. Finally iterate with some condition changing the rotation until it match.
Obviously it's an overkill, but I can't figure it out how to code it in an analytic way.
Any thoughts?
Note: I have noticed that if the mirror rotates about a point (Mrot) contained in it's plane and the ray light is reaching that point (Mrot) I can easily calculate the the mirror angle, but unfortunately is not my case.