title: Draw a Bitmap in Arc center?
body: <p>In my Custom View, I draw multiple filled <code>Arc</code>s like this:</p>
  
  <pre><code>canvas.drawArc(oval, startAngle, sweepAngle, true, sectorPaint);
  </code></pre>
  
  <p>Now, I want to draw an icon on the center of the Arc. I started with this:</p>
  
  <pre><code>Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.my_icon);
  canvas.drawBitmap(bitmap, pointX, pointY, null); //pointX &amp; pointY ??
  </code></pre>
  
  <p>However, I don't know what should I set for <code>pointX</code> and <code>pointY</code>. Here is the data I have:</p>
  
  <ul>
  <li>Oval center coordinates and radius.</li>
  <li>startAngle and sweepAngle (and therefore, endAngle can be derived)</li>
  </ul>
  
  <p>Is there a way to know the values <code>pointX</code> and <code>pointY</code> giving those inputs?</p>
  
  <hr>
  
  <p>Edit: an illustration sketch: </p>
  
  <p><img src="https://i.stack.imgur.com/lqRyX.png" alt="enter image description here"></p>