code: private List createPoints(int numberOfSegments, float radius, float cx, float cy, float start, float end) {
          ArrayList tempPoints = new ArrayList();
  
          int step = 360 / numberOfSegments;
          
          for (float a=start;a<=end+step;a+=step) {
              float ang = a;
              if (ang > end) {
                  ang = end;
              }
              float x = (float) (cx + (FastTrig.cos(Math.toRadians(ang)) * radius));
              float y = (float) (cy + (FastTrig.sin(Math.toRadians(ang)) * radius));
              
              tempPoints.add(new Float(x));
              tempPoints.add(new Float(y));
          }
          
          return tempPoints;
      }
docs: Generate the points to fill a corner arc.
  
  @param numberOfSegments How fine to make the ellipse.
  @param radius The radius of the arc.
  @param cx The x center of the arc.
  @param cy The y center of the arc.
  @param start The start angle of the arc.
  @param end The end angle of the arc.
  @return The points created.