Matrix2D.setToRotation Method
Parent Object:
Matrix2DDefined in namespace "adsk::core" and the header file is <Core/Geometry/Matrix2D.h>
Description
Sets this matrix to the matrix of rotation by the specified angle, through the specified origin.
Syntax
"matrix2D_var" is a variable referencing a Matrix2D object.returnValue = matrix2D_var.setToRotation(angle, origin)
|
"matrix2D_var" is a variable referencing a Matrix2D object.
#include <Core/Geometry/Matrix2D.h>
returnValue = matrix2D_var->setToRotation(angle, origin);
|
Return Value
boolean |
Returns true if successful. |
Parameters
angle |
double |
The rotation angle in radians. |
origin |
Point2D |
The origin point of the rotation. |
Version
Introduced in version August 2014