Rotates a vector around a given axis. Returns a normalized vector if successful.
LPD3DVECTOR D3DRMVectorRotate(
LPD3DVECTOR lpr,
LPD3DVECTOR lpv,
LPD3DVECTOR lpaxis,
D3DVALUE theta
);
Parameters
lpr
Address of a D3DVECTOR structure that will contain the normalized result of the operation.
lpv
Address of a D3DVECTOR structure that will be rotated around the given axis.
lpaxis
Address of a D3DVECTOR structure that is the axis of rotation.
theta
The rotation in radians.
Return Values
Returns the address of the vector that was passed as the first parameter if successful, or zero otherwise. This vector is normalized.