DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ MatrixToQuat()

static proto void Math3D::MatrixToQuat ( vector mat[3],
out float d[4] )
staticprivate

Converts rotation matrix to quaternion.

Аргументы
matvector[3] rotation matrix
[out]dfloat[4] created quaternion copy
vector mat[3];
vector rot = "70 15 45";
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
proto void Print(void var)
Prints content of variable to console/log.
void Math3D()
Определения EnMath3D.c:29

Используется в ActionRepackTentCB::DropDuringRepacking(), FloatingCrossHair(), ActionDeployBase::MoveEntityToFinalPosition(), ItemBase::OnPlacementComplete() и ThrowAllItemsInInventory().