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
"matrix3D_var" is a variable referencing a Matrix3D object.
|
"matrix3D_var" is a variable referencing a Matrix3D object.
|
Type | Description |
boolean | Returns true if successful. |
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. |