Monday 20 August 2012

Find All Circle point in android

 for (int d = 0; d < 360; d++)
     {
            for(int r = 0; r < (int)(diameter/2); r++)
            {
            double x = r * Math.cos(Math.toRadians(d));
            double y = r * Math.sin(Math.toRadians(d));
              }
         }

No comments:

Post a Comment