Converts rotation matrix to quaternion.
mat | vector [3] rotation matrix | |
[out] | d | float [4] created quaternion copy vector mat[3];
vector rot = "70 15 45";
rot.RotationMatrixFromAngles( mat );
float d[4];
Math3D.MatrixToQuat( mat, d );
Print( d );
>> {0.241626,0.566299,-0.118838,0.778973}
proto void RotationMatrixFromAngles(out vector mat[3]) Creates rotation matrix from angles. Определения EnConvert.c:106 |
Используется в ActionRepackTentCB::DropDuringRepacking(), FloatingCrossHair(), ActionDeployBase::MoveEntityToFinalPosition(), ItemBase::OnPlacementComplete() и ThrowAllItemsInInventory().