ReflectionLaw:

Path: Imaging/Optics

% Apply the vector form of the law of reflection.
   The incoming ray points at the surface.
------------------------------------------------------------------------
   Form:
   u2 = ReflectionLaw( u1, n )
------------------------------------------------------------------------

   ------
   Inputs
   ------
   u1              (3,1) Incoming ray
   n               (3,1) Normal

   -------
   Outputs
   -------
   u2              (3,1) Reflected ray

------------------------------------------------------------------------
   Reference: Hanrahan, P. "Refraction"
------------------------------------------------------------------------

Children:

Math: Linear/Unit

Back to the Imaging Module page