Matrix3D.setToRotateTo Method
Parent Object: Matrix3DDefined in namespace "adsk::core" and the header file is <Core/Geometry/Matrix3D.h>
Description
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 perpendicular and in opposite directions to specify a specific solution, but is otherwise ignored
Syntax
"matrix3D_var" is a variable referencing a Matrix3D object.
|
Return Value
Type | Description |
boolean | Returns true if successful. |
Parameters
Name | Type | Description |
from | Vector3D | The vector to rotate from. |
to | Vector3D | The vector to rotate to. |
axis | Vector3D | The optional axis vector to disambiguate the rotation axis. This is an optional argument whose default value is null. |