DirectX SDK

DirectX7.VectorNormalize

The DirectX7.VectorNormalize method scales a vector so that its modulus is 1.

object.VectorNormalize(v As D3DVECTOR)

Parameters

object
Object expression that resolves to a DirectX7 object.
v
A D3DVECTOR type that will contain the result of the scaling operation.

Error Codes

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