corrected harmless bug (misleading j/i scopes in nested for's)

This commit is contained in:
Paolo Cignoni 2013-03-25 13:10:40 +00:00
parent 4fa516b8d7
commit ea5c88be1a
1 changed files with 2 additions and 2 deletions

View File

@ -67,9 +67,9 @@ public:
{
float angle = float(i)*(M_PI/2.0)/float(stepNum);
Box2f bb;
for(size_t i=0;i<poly.size();++i)
for(size_t j=0;j<poly.size();++j)
{
Point2f pp=poly[i];
Point2f pp=poly[j];
pp.Rotate(angle);
bb.Add(pp);
}