ImageGear .NET v25.0 - Updated
Rotate Method (ImGearVectorRotation)
Example 




ImageGear.Formats.Vector Assembly > ImageGear.Vector Namespace > ImGearVectorRotation Class : Rotate Method
Rotation angle in radians.
X-coordinate of the rotation vector.
Y-coordinate of the rotation vector.
Z-coordinate of the rotation vector.
Performs a counterclockwise rotation of angle radians around the vector from the origin through the (x, y, z) point.
Syntax
'Declaration
 
Public Sub Rotate( _
   ByVal angle As Single, _
   ByVal vectorX As Single, _
   ByVal vectorY As Single, _
   ByVal vectorZ As Single _
) 
'Usage
 
Dim instance As ImGearVectorRotation
Dim angle As Single
Dim vectorX As Single
Dim vectorY As Single
Dim vectorZ As Single
 
instance.Rotate(angle, vectorX, vectorY, vectorZ)
public void Rotate( 
   float angle,
   float vectorX,
   float vectorY,
   float vectorZ
)
public: void Rotate( 
   float angle,
   float vectorX,
   float vectorY,
   float vectorZ
) 
public:
void Rotate( 
   float angle,
   float vectorX,
   float vectorY,
   float vectorZ
) 

Parameters

angle
Rotation angle in radians.
vectorX
X-coordinate of the rotation vector.
vectorY
Y-coordinate of the rotation vector.
vectorZ
Z-coordinate of the rotation vector.
Example
viewport.GetViewportRotation().Rotate((float)(Math.PI / 4), 0, 0, 1);
viewport.GetViewportRotation().Rotate(Math.PI / 4, 0, 0, 1)
See Also

Reference

ImGearVectorRotation Class
ImGearVectorRotation Members