How do I calculate the reflection of a line on a sphere in 3D? I.e. given the situation shown below, how do I calculate the vector w?
Where C is the center of the sphere, v is the direction of the line and w is the direction of the reflected line.
How do I calculate the reflection of a line on a sphere in 3D? I.e. given the situation shown below, how do I calculate the vector w?
Where C is the center of the sphere, v is the direction of the line and w is the direction of the reflected line.
Copyright © 2021 JogjaFile Inc.

Note that $w$ is the reflection of $v$ in the line $\overline{xc}$, so simply take $$w=2\langle v,x-c\rangle(x-c)-v.$$