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
TWO_PI (6.28318...)
Exemplos
float f =0.0;
beginShape(POLYGON);
while(f < TWO_PI) {
vertex(width/2+cos(f)*40, height/2+sin(f)*40);
f +=PI/12.0;
}
endShape();
Descrição
TWO_PI é uma constante matemática de valor constante igual à
6.28318530717958647693. É o dobro da razão entre a circunferência de
um círculo e seu diâmetro. É útil em combinações com as funções
trigonométricas sin() e cos().