API Reference > OdGe Classes > OdGeMatrix3d Class > OdGeMatrix3d Methods > OdGeMatrix3d::rotation Method
OdGeMatrix3d::rotation Method
Syntax
C++
static OdGeMatrix3d rotation(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. 

Returns 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.