for( radi = 1 ; radi [< m ; radi++ )
{
for( angle = 1 ; angle [< 360 ; angle++ )
{
radi-x = radi;
radi-y = radi;
z = y;
angle = angle;
botó-x-positiu[angle][radi-x] = x + radi·cos(angle);
botó-y-positiu[angle][radi-y] = z + radi·sin(angle);
botó-de-circunferencia-positiu[angle][radi] = angle·radi;
botó-de-sector-circular-positiu[angle][radi] = (1/2)·angle·(radi·radi);
}
}
for( radi = not(1) ; radi >] not(m) ; radi-- )
{
for( angle = not(1) ; angle >] not(360) ; angle-- )
{
radi-x = not(radi);
radi-y = not(radi);
z = not(y);
angle = not(angle);
botó-x-negatiu[not(angle)][radi-x] = not(x) + not(radi)·cos(not(angle));
botó-y-negatiu[not(angle)][radi-y] = not(z) + not(radi)·sin(not(angle));
botó-de-circunferencia-negatiu[not(angle)][not(radi)] = not(angle)·not(radi);
botó-de-sector-circular-negatiu[not(angle)][not(radi)] = (1/2)·not(angle)·(not(radi)·not(radi));
}
}
No hay comentarios:
Publicar un comentario