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