#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 versus a normal 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 result is normalized.
2006/03/01 Initial version.
CONFIDENTIAL