Реферат: Трехмерная графика Теория

res.x [2][2] = Cosine;

return res;

};

Matrix RotateY ( double Angle )

{

Matrix res ( 1 );

double Cosine = cos ( Angle );

double Sine = sin ( Angle );

res.x [0][0] = Cosine;

res.x [2][0] = - Sine;

res.x [0][2] = Sine;

res.x [2][2] = Cosine;

return res;

};

Matrix RotateZ ( double Angle )

{

Matrix res ( 1 );

double Cosine = cos ( Angle );

double Sine = sin ( Angle );

res.x [0][0] = Cosine;

res.x [1][0] = - Sine;

res.x [0][1] = Sine;

res.x [1][1] = Cosine;

return res;

};

Matrix Rotate ( const Vector& axis, double angle )

{

Matrix res ( 1 );

double Cosine = cos ( angle );

К-во Просмотров: 1938
Бесплатно скачать Реферат: Трехмерная графика Теория