Platform SDK: DirectX

DirectX7.VectorReflect

The DirectX7.VectorReflect method reflects a ray about a given normal.

object.VectorReflect(vDest As D3DVECTOR, _
    vRay As D3DVECTOR, _
    vNormal As D3DVECTOR)

Parameters

object
Object expression that resolves to a DirectX7 object.
vDest
A D3DVECTOR type that will contain the result of the operation.
vRay
A D3DVECTOR type that will be reflected about a normal.
vNormal
A D3DVECTOR type specifying the normal about which the vector specified in vRay is reflected.

Error Codes

If the method fails, an error is raised and Err.Number is set.