public static void updatePointOnCircle(PointF pointToUpdate,float radius,double angleDegrees,PointF center){
  if (radius < 0) {
    throw new IllegalArgumentException("Radius cannot be < 0.");
  }
  double angleRadians=Math.toRadians(angleDegrees);
  float x=(float)(radius * Math.sin(angleRadians) + center.x);
  float y=(float)(radius * -Math.cos(angleRadians) + center.y);
  pointToUpdate.set(x,y);
}

public static void updatePointOnCircle ( PointF pointToUpdate , float radius , double angleDegrees , PointF center ) { if ( radius < 0 ) { throw new IllegalArgumentException ( "Radius cannot be < 0." ) ; } double angleRadians = Math . toRadians ( angleDegrees ) ; float x = ( float ) ( radius * Math . sin ( angleRadians ) + center . x ) ; float y = ( float ) ( radius * - Math . cos ( angleRadians ) + center . y ) ; pointToUpdate . set ( x , y ) ; }
given a center point and radius of a circle , update a point on the circle at the given angle . due north of the center point ( x = 0 ) is 0 degrees and increasing the degree value will move the point clockwise around the circle . < br > < br > throws illegalargumentexception if radius < 0 .
