Utility.GetRotationAxisAndAngle Method

Returns the rotation axis and the angle to rotate from one vector to another.
Public Shared Sub GetRotationAxisAndAngle( _ 
ByVal vector1 As Vector3D, _ 
ByVal vector2 As Vector3D, _ 
ByRef rotAxis As Vector3D, _ 
ByRef angleInDegrees As Double
)
This language is not supported or no code example is available.
public static void GetRotationAxisAndAngle( 
Vector3D vector1
Vector3D vector2
out Vector3D rotAxis
out double angleInDegrees 
)
This language is not supported or no code example is available.

Parameters

vector1
Vector3D

First vector

vector2
Vector3D

Second vector

rotAxis
Vector3D

The rotation axis

angleInDegrees
double

The angle in degrees, measured in clockwise direction.

.NET Framework

Supported in: 4.8

In this article

Definition