How to judge whether a point in the sector area,in android?
I modify the PieChart.java in the achartengine library.I want to fill points on the black area.

     RectF oval = new RectF(mCenterX - radius, mCenterY - radius, mCenterX + radius, mCenterY
        + radius);
    List<RectF> prevLabelsBounds = new ArrayList<RectF>();

    for (int i = 0; i < sLength; i++) {
      paint.setColor(mRenderer.getSeriesRendererAt(i).getColor());
      float value = (float) mDataset.getValue(i);
      float angle = (float) (value / total * 360);
      canvas.drawArc(oval, currentAngle, angle, true, paint);
      drawLabel(canvas, mDataset.getCategory(i), mRenderer, prevLabelsBounds, mCenterX, mCenterY,
          shortRadius, longRadius, currentAngle, angle, left, right, mRenderer.getLabelsColor(),
          paint);
      if (Float.floatToIntBits(value) == Float.floatToIntBits(parentValue)) {
        paint.setColor(Color.BLACK);
        float childCurrentAngle = currentAngle;
        float childAngle = (float) (childValue / parentValue * 360);
        canvas.drawArc(oval, childCurrentAngle, childAngle, true, paint);
	// how to fill the points?
    }
the question is how to judge whether a point in the area?
Sorry for my poor English.Thanks.
How to judge whether a point in the sector area,in android?
===

I modify the PieChart.java in the achartengine library.I want to fill points on the black area.

     RectF oval = new RectF(mCenterX - radius, mCenterY - radius, mCenterX + radius, mCenterY
        + radius);
    List<RectF> prevLabelsBounds = new ArrayList<RectF>();

    for (int i = 0; i < sLength; i++) {
      paint.setColor(mRenderer.getSeriesRendererAt(i).getColor());
      float value = (float) mDataset.getValue(i);
      float angle = (float) (value / total * 360);
      canvas.drawArc(oval, currentAngle, angle, true, paint);
      drawLabel(canvas, mDataset.getCategory(i), mRenderer, prevLabelsBounds, mCenterX, mCenterY,
          shortRadius, longRadius, currentAngle, angle, left, right, mRenderer.getLabelsColor(),
          paint);
      if (Float.floatToIntBits(value) == Float.floatToIntBits(parentValue)) {
        paint.setColor(Color.BLACK);
        float childCurrentAngle = currentAngle;
        float childAngle = (float) (childValue / parentValue * 360);
        canvas.drawArc(oval, childCurrentAngle, childAngle, true, paint);
	// how to fill the points?
    }
the question is how to judge whether a point in the area?
Sorry for my poor English.Thanks.