Platform SDK: DirectX

DirectX7.ViewMatrix

The DirectX7.ViewMatrix method creates a view matrix based on the location of the camera passed to it.

object.ViewMatrix(mDest As D3DMATRIX, _
    vFrom As D3DVECTOR, _
    vTo As D3DVECTOR, _
    vUp As D3DVECTOR, _
    roll As Single)

Parameters

object
Object expression that resolves to a DirectX7 object.
mDest
The newly created view matrix.
vFrom
D3DVECTOR type that defines the camera location.
vTo
D3DVECTOR type that defines the camera look-at target.
vUp
D3DVECTOR type that defines the current world's up, usually [0, 1, 0].
roll
Clockwise roll around viewing direction, in radians.

Error Codes

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