Calculates the Matrix3D needed to rotate a Vector3D from its startOrientation
and having it aligned to the alignTo direction.
Namespace: Ico.Windows.Media.Media3DAssembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)
Syntax
C# |
---|
public static Matrix3D GetVectorRotationMatrix(
Vector3D startOrientation,
Vector3D alignTo
) |
Visual Basic |
---|
Public Shared Function GetVectorRotationMatrix ( _
startOrientation As Vector3D, _
alignTo As Vector3D _
) As Matrix3D |
JScript |
---|
public static function GetVectorRotationMatrix(
startOrientation : Vector3D,
alignTo : Vector3D
) : Matrix3D |
Parameters
- startOrientation
- Type: System.Windows.Media.Media3D..::..Vector3D
The Vector3D specifying the original direction of the Vector3D.
- alignTo
- Type: System.Windows.Media.Media3D..::..Vector3D
The Vector3D specifying the direction which to align the original vector to.
Return Value
The
Matrix3D needed to perform the vector alignment transformation.
See Also