VECReflect

Syntax

#include <revolution/mtx.h>

void VECReflect ( const Vec* src, const Vec* normal, Vec* dst );

Arguments

src Pointer to incident Vecsrc 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.

Return Values

None.

Description

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.

See Also

Vec, VecPtr, VECHalfAngle

Revision History

2006/03/01 Initial version.


CONFIDENTIAL