This document is archived and information here might be outdated. Recommended version. |
Rotate the vector around an axis defined by another vector. The angle is in radians.
[Visual Basic .NET] Public Sub Rotate ( _ ByVal Angle As Double, _ ByVal axis As IVector3D _ )
[C#] public void Rotate ( double Angle, IVector3D axis );
[C++]
HRESULT Rotate(
double Angle,
IVector3D* axis
);
[C++] Parameters Angle
Angle is a parameter of type double axis
axis is a parameter of type IVector3D*
Rotates the base Vector3D a given input angle measured in radians around the specified axis defined by the input Vector3D. To rotate a vector in a given plane defined by two vectors, use the CrossProduct of those vectors as the axis of rotation.