API Reference > OdGe Classes > OdGeQuaternion Class > OdGeQuaternion Methods > set Method > OdGeQuaternion::set Method (OdGeMatrix3d&)
OdGeQuaternion::set Method (OdGeMatrix3d&)
Syntax
C++
OdGeQuaternion& set(const OdGeMatrix3d& matrix);
Parameters 
Description 
const OdGeMatrix3d& matrix 
[in] A 3D matrix that defines components of this quaternion. 

reference to this OdGeQuaternion object.

Converts passed rotation matrix into the quaternion. 

 

Input matrix A must be a rotation matrix, i.e. A^T = A^-1 and det(A) = 1. 

 

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