API Reference > OdGe Classes > OdGeMatrix2d Class > OdGeMatrix2d Methods > OdGeMatrix2d::setToRotation Method
OdGeMatrix2d::setToRotation Method
Syntax
C++
OdGeMatrix2d& setToRotation(double angle, const OdGePoint2d& center = OdGePoint2d::kOrigin);
Parameters 
Description 
double angle 
[in] Rotation angle.  
const OdGePoint2d& center = OdGePoint2d::kOrigin 
[in] Center of rotation. 

Sets this matrix to the matrix which rotates by angle about center, and returns a reference to this matrix. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.