#include <revolution/mtx.h>
void VECReflect ( const Vec* src, const Vec* normal, Vec* dst );
src |
Pointer to incident Vec. src must point toward the surface. |
normal |
Pointer to Vec that is normal to the surface. normal must point away from the surface. |
dst |
Pointer to the unit vector Vec that is reflected. Acceptable if dst = src or dst = normal. |
None.
Reflects an incident vector across the normal vector such that the angle of incidence equals the angle of reflection. This function is intended for use in calculating surface reflections.
Note: Although the incident vector does not need to be a unit matrix, the resultant vector is normalized.
03/01/2006 Initial version.