Share

Matrix2D.setToRotateTo Method

Parent Object: Matrix2D
Defined in namespace "adsk::core" and the header file is <Core/Geometry/Matrix2D.h>

Description

Sets to the matrix of rotation that would align the 'from' vector with the 'to' vector.

Syntax

"matrix2D_var" is a variable referencing a Matrix2D object.
returnValue = matrix2D_var.setToRotateTo(from, to)

Return Value

Type Description
boolean Returns true if successful.

Parameters

Name Type Description
from Vector2D The from vector.
to Vector2D The to vector.

Version

Introduced in version August 2014

Was this information helpful?