static void Main(string[] args)
 {
     int n = int.Parse(Console.ReadLine());
     Spiral s = new Spiral(n);
     s.DrawSpiral();
     Console.ReadLine();
 }
Exemple #2
0
        private void NextPart()
        {
            switch (this.currentPart)
            {
                case 0:
                    this.Canvas.Children.RemoveAt(1);
                    this.Canvas.Children.Add(this.LoadResource("Monotone.Title.xaml"));
                    break;

                case 1:
                    this.Canvas.Children.RemoveAt(1);
                    Spiral spiral = new Spiral();
                    this.Canvas.Children.Add(spiral);
                    spiral.Start();
                    break;

                case 2:
                    ((Spiral)this.Canvas.Children[1]).Stop();
                    this.Canvas.Children.RemoveAt(1);
                    Stroposcope stroposcope = new Stroposcope();
                    this.Canvas.Children.Add(stroposcope);
                    stroposcope.Start();
                    break;

                case 3:
                    ((Stroposcope)this.Canvas.Children[1]).Stop();
                    this.Canvas.Children.RemoveAt(1);
                    this.Canvas.Children.Add(this.LoadResource("Monotone.End.xaml"));
                    break;
            }

            this.currentPart++;
        }
 static void Main(string[] args)
 {
     Spiral s = new Spiral(4);
     s.DrawSpiral();
     Console.ReadLine();
 }
Exemple #4
0
 // Use this for initialization
 void Start()
 {
     spiralComp = gameObject.GetComponent<Spiral>();
 }
Exemple #5
0
 public Feature MapAsSingleFeature(Spiral guidancePatternAdapt)
 {
     GeoJSON.Net.Geometry.LineString lineString = LineStringMapper.MapLineString(guidancePatternAdapt.Shape, _properties.AffineTransformation);
     return(new Feature(lineString, _featProps));
 }
Exemple #6
0
 public override void PatternSetter()
 {
     pattern = new Spiral(bullet, speed, amount);
 }
Exemple #7
0
 private ExtPathManager(Spiral spiral)
 {
     _spiral = spiral ?? throw new ArgumentNullException(nameof(spiral));
 }
Exemple #8
0
 public void SetUp()
 {
     spiral = new Spiral(new Point(0, 0));
 }