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

◆ ScaleMatrix()

static void Math3D::ScaleMatrix ( float scale,
out vector mat[3] )
inlinestaticprivate

Creates scale matrix.

Аргументы
scalescale coeficient
[out]matcreated scale matrix
vector mat[3];
Math3D.ScaleMatrix( 2.5, mat );
Print( mat );
>> <2.5,0,0>,<0,2.5,0>,<0,0,2.5>
Определения EnConvert.c:106
proto void Print(void var)
Prints content of variable to console/log.
void Math3D()
Определения EnMath3D.c:29

См. определение в файле EnMath3D.c строка 294

295 {
296 vector v0, v1, v2;
297 v0[0] = scale;
298 v1[1] = scale;
299 v2[2] = scale;
300 mat[0] = v0;
301 mat[1] = v1;
302 mat[2] = v2;
303 }