Platform SDK: DirectX

DirectX7.VectorScale

The DirectX7.VectorScale method scales a vector uniformly in all three axes.

object.VectorScale(vDest As D3DVECTOR, _
    vA As D3DVECTOR, _
    factor As Single)

Parameters

object
Object expression that resolves to a DirectX7 object.
vDest
The D3DVECTOR type that will contain the result of the operation.
vA
The D3DVECTOR type that this method scales.
factor
Scaling factor. A value of 1 does not change the scaling; a value of 2 doubles it, and so on.

Error Codes

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