private void calculateSunRotation(float _offset,Time time,int canvasWidth,int canvasHeight){
  sunPositionX=(float)(canvasWidth / 2 + (canvasWidth / 2 + 200.0f) * Math.cos((2 * Math.PI * time.minute / 60) + _offset - Math.PI / 2));
  sunPositionY=(float)(canvasHeight / 2 + (canvasWidth / 2 + 200.0f) * Math.sin((2 * Math.PI * time.minute / 60) + _offset - Math.PI / 2));
}

private void calculateSunRotation ( float _offset , Time time , int canvasWidth , int canvasHeight ) { sunPositionX = ( float ) ( canvasWidth / 2 + ( canvasWidth / 2 + 200.0f ) * Math . cos ( ( 2 * Math . PI * time . minute / 60 ) + _offset - Math . PI / 2 ) ) ; sunPositionY = ( float ) ( canvasHeight / 2 + ( canvasWidth / 2 + 200.0f ) * Math . sin ( ( 2 * Math . PI * time . minute / 60 ) + _offset - Math . PI / 2 ) ) ; }
calculates the rotation of the sun
