public void Look(double d, int sgn) { int n = (int)(0.5 * d / AnimationStepLength + 0.5); double dz = 45.0 / n; for (int i = 0; i < n; i++) { Console.WriteLine(i); _eyeball.RotateZ(sgn * dz); Thread.Sleep(SleepDuration); } Thread.Sleep(SleepDuration * 100); for (int i = 0; i < n; i++) { _eyeball.RotateZ(-sgn * dz); Thread.Sleep(SleepDuration); } }