Share

DocumentUnitsMatrix2d.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: 29.0

Syntax

VB

Public Sub SetToRotateTo ( 
	fromVector As DocumentUnitsVector2d,
	toVector As DocumentUnitsVector2d
)

C#

public void SetToRotateTo(
	DocumentUnitsVector2d fromVector,
	DocumentUnitsVector2d toVector
)

Parameters

fromVector
Type: Autodesk.iLogic.Types.DocumentUnitsVector2d
Input Vector object to align from.
toVector
Type: Autodesk.iLogic.Types.DocumentUnitsVector2d
Input Vector object to align to.

See Also

Reference

Was this information helpful?