Function anim::reflect

Function Documentation

Vector anim::reflect(const Vector &vec, const Vector &normal_unit_vector)

Reflects vec across normal_unit_vector.

Parameters:
  • vec – The incident vector.

  • normal_unit_vector – The reflection normal; assumed to be unit length.