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

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

 

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