question: public float distanceToCenter ( float x , float y ) { PointF c = getCenterOffsets ( ) ; float dist = 0f ; float xDist = 0f ; float yDist = 0f ; if ( x > c . x ) { xDist = x - c . x ; } else { xDist = c . x - x ; } if ( y > c . y ) { yDist = y - c . y ; } else { yDist = c . y - y ; } dist = ( float ) Math . sqrt ( Math . pow ( xDist , 2.0 ) + Math . pow ( yDist , 2.0 ) ) ; return dist ; }
target:  Returns the distance of a certain point on the chart to the center of the chart.