public static void MyMethod(float x1, float y1, double a1, double a2, double a3, double a4) { Drowing.SetPossition(x1, y1); Drowing.Go(100, a1); Drowing.Go(10 * Math.Sqrt(2), a2); Drowing.Go(100, a3); Drowing.Go(100 - (double)10, a4); }
public static void DrowingSquare(float x1, float y1, double angleTurn1, double angleTurn2, double angleTurn3, double angleTurn4) { Drowing.SetPossition(x1, y1); Drowing.Go(100, angleTurn1); Drowing.Go(10 * Math.Sqrt(2), angleTurn2); Drowing.Go(100, angleTurn3); Drowing.Go(100 - (double)10, angleTurn4); }
public static void Main() { Drowing.Initialize(); MyMethod(10, 0, 0, Math.PI / 4, Math.PI, Math.PI / 2); MyMethod(120, 10, Math.PI / 2, Math.PI / 2 + Math.PI / 4, Math.PI / 2 + Math.PI, Math.PI / 2 + Math.PI / 2); MyMethod(110, 120, Math.PI, Math.PI + Math.PI / 4, Math.PI + Math.PI, Math.PI + Math.PI / 2); MyMethod(0, 110, -Math.PI / 2, -Math.PI / 2 + Math.PI / 4, -Math.PI / 2 + Math.PI, -Math.PI / 2 + Math.PI / 2); Drowing.ShowResult(); }