DirectX7.VectorRotate
The DirectX7.VectorRotate method rotates a vector around a given axis. Returns a normalized vector if successful.
object.VectorRotate(vDest As D3DVECTOR, _
vA As D3DVECTOR, _
vAxis As D3DVECTOR, _
theta As Single)
Parameters
- object
- Object expression that resolves to a DirectX7 object.
- vDest
- A D3DVECTOR type that will contain the normalized result of the operation.
- vA
- A D3DVECTOR type that will be rotated around the given axis.
- vAxis
- A D3DVECTOR type that is the axis of rotation.
- theta
- The amount of rotation in radians.
Error Codes
If the method fails, an error is raised and Err.Number is set.