D3DRMVectorReflect

Reflects a ray about a given normal.

LPD3DVECTOR D3DRMVectorReflect(
LPD3DVECTOR lpd,
LPD3DVECTOR lpRay,
LPD3DVECTOR lpNorm
);

Parameters

lpd

Address of a D3DVECTOR structure that will contain the result of the operation.

lpRay

Address of a D3DVECTOR structure that will be reflected about a normal.

lpNorm

Address of a D3DVECTOR structure specifying the normal about which the vector specified in lpRay is reflected.

Return Values

Returns the address of the vector that was passed as the first parameter if successful, or zero otherwise.