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

◆ MatrixMultiply4()

static proto void Math3D::MatrixMultiply4 ( vector mat0[4],
vector mat1[4],
out vector res[4] )
staticprivate

Transforms matrix.

Аргументы
mat0vector[4] first matrix
mat1vector[4] second matrix
[out]resvector[4] result of first and second matrix multiplication
vector mat0[4] = { "2 0 0 0", "0 3 0 0", "0 1 0 0", "0 0 0 1" }; // scale matrix
vector mat1[4] = { "1 0 0 0", "0 1 0 0", "0 1 0 0", "2 4 1 3" }; // translation matrix
vector res[4];
Math3D.MatrixMultiply4(mat0, mat1, res)
Print( res );
>> <2,0,0>,<0,3,0>,<0,3,0>,<4,13,0>
Определения EnConvert.c:106
proto void Print(void var)
Prints content of variable to console/log.
void Math3D()
Определения EnMath3D.c:29

Используется в EntityAI::IsAreaAtDoorFree() и DayZPlayerCameraBase::OnUpdate().