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

Matrix m = Translate ( v );

for ( int i = 0; i < PointNumber; i++ )

Point[i] = m * Point[i];

Center = m * Center;

}

void Polygon :: Rotate ( double Alfa, double Beta, double Gamma )

{

Matrix m = RotateX ( Alfa ) * RotateY ( Beta ) * RotateZ ( Gamma );

for ( int i = 0; i < PointNumber; i++ )

Point[i] = m * Point[i];

Normal = m * Normal;

Center = m * Center;

}

void Polygon :: PolyScale ( const Vector& v )

{

Matrix m = Scale ( v );

for ( int i = 0; i < PointNumber; i++ )

Point[i] = m * Point[i];

Center = m * Center;

}

void Polygon :: PolyMirrorX ()

{

Matrix m = MirrorX();

for ( int i = 0; i < PointNumber; i++ )

Point[i] = m * Point[i];

Center = m * Center;

Normal = m * Normal;

}

void Polygon :: PolyMirrorY ()

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