View Single Post
  #3  
Old 01-14-2011, 05:35 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
It'd be better to define how many vertices for the loop.

PHP Code:
temp.vertices 32;
temp.radius 3;
temp.circle = new[0];
temp.= {player.1.5,player.2};
for (
temp.i=0;temp.i<temp.vertices;temp.i++) {
  
temp.= (pi*2)*temp.i;
  
temp.circle.add(temp.O[0] + cos(temp.a)*temp.radius);
  
temp.circle.add(temp.O[1] - sin(temp.a)*temp.radius);
}
showpoly(200,temp.circle); 
At least, that's my opinion. I find it easier to read.
Reply With Quote