private void rotate(double degrees,Point point){
  double angle=Math.toRadians(degrees);
  int x=centerX + (int)((point.x - centerX) * Math.cos(angle) - (point.y - centerY) * Math.sin(angle));
  int y=centerY + (int)((point.x - centerX) * Math.sin(angle) + (point.y - centerY) * Math.cos(angle));
  point.x=x;
  point.y=y;
}

private void rotate ( double degrees , Point point ) { double angle = Math . toRadians ( degrees ) ; int x = centerX + ( int ) ( ( point . x - centerX ) * Math . cos ( angle ) - ( point . y - centerY ) * Math . sin ( angle ) ) ; int y = centerY + ( int ) ( ( point . x - centerX ) * Math . sin ( angle ) + ( point . y - centerY ) * Math . cos ( angle ) ) ; point . x = x ; point . y = y ; }
x = x0 + ( x - x0 ) * cos ( a ) - ( y - y0 ) * sin ( a ) ; y = y0 + ( y - y0 ) * cos ( a ) + ( x - x0 ) * sin ( a ) ;
