You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
villares edited this page May 24, 2020
·
4 revisions
Nome
applyMatrix()
Exemplos
size(100, 100, P3D);
noFill();
translate(50, 50, 0);
rotateY(PI/6);
stroke(153);
box(35);
// Determina ângulo de rotaçãofloat ct =cos(PI/9.0);
float st =sin(PI/9.0);
//Matriz de rotação em torno do eixo YapplyMatrix( ct, 0.0, st, 0.0,
0.0, 1.0, 0.0, 0.0,
-st, 0.0, ct, 0.0,
0.0, 0.0, 0.0, 1.0);
stroke(255);
box(50);
Descrição
Multiplica a matriz corrente por aquela
especificada pelos parâmetros. Isto é bastante lento
porque tentará tentar calculara o inverso da
transformação. Portanto, a evite sempre que
possível. A função equivalente em OpenGL é
glMultMatrix().