DocumentUnitsMatrix.SetToRotateTo Method

Sets to the matrix of rotation that would align the 'from' vector with the 'to' vector. The optional Axis argument may be used when the two vectors are parallel and in opposite directions to specify a specific solution, but is otherwise ignored.

Namespace:  Autodesk.iLogic.Types
Assembly:  Autodesk.iLogic.Types (in Autodesk.iLogic.Types.dll) Version: 25.0

Syntax

VB

Public Sub SetToRotateTo ( 
	fromVector As DocumentUnitsVector,
	toVector As DocumentUnitsVector,
	axis As DocumentUnitsVector
)

C#

public void SetToRotateTo(
	DocumentUnitsVector fromVector,
	DocumentUnitsVector toVector,
	DocumentUnitsVector axis
)

Parameters

fromVector
Type: Autodesk.iLogic.Types.DocumentUnitsVector
Input Vector object to align from.
toVector
Type: Autodesk.iLogic.Types.DocumentUnitsVector
Input Vector object to align to.
axis
Type: Autodesk.iLogic.Types.DocumentUnitsVector
Input Vector object. This Is an optional argument whose default value Is 0.

See Also

Reference

DocumentUnitsMatrix Class
Autodesk.iLogic.Types Namespace