private void SetTime(int s, int m, int h) { int[] timeUnits = { 6 * s, 6 * m, 30 * h }; for (int i = 0; i < 3; i++) { anglesOfRotation[i] = timeUnits[i] - 90; float cos = (float)Math.Cos(((Math.PI * anglesOfRotation[i]) / 180)); float sin = (float)Math.Sin(((Math.PI * anglesOfRotation[i]) / 180)); arrowsEndPos[i].X = Watch.Width / 2 + radius[i] * cos; arrowsEndPos[i].Y = Watch.Height / 2 + radius[i] * sin; } Watch.Refresh(); }