private void Window_Loaded(object sender, RoutedEventArgs e) { //Math.Vector vec = new Math.Vector(new Math.Dot2(100, 200), new Math.Dot2(200, 100)); //draw.Line(vec); //List<Math.Dot2> dots = Math.Math.CreateRandomDots(10, (int)this.MineCanvas.Width - 10, (int)this.MineCanvas.Height - 10); //draw.Dots(dots); //draw.Lines(dots); //List<Math.Dot2> interActive; //Math.Border border = new Math.Border(20, (int)this.MineCanvas.Width - 10, (int)this.MineCanvas.Height - 10, out interActive, draw); border = new Math.Border(3, (int)this.MineCanvas.Width - 10, (int)this.MineCanvas.Height - 10); draw.Lines(border); //draw.Dots(interActive); //Math.Dot2 ss; //List<Math.Dot2> source = new List<Math.Dot2>() { new Math.Dot2(500, 500),new Math.Dot2(1, 1) ,new Math.Dot2(500, 1),new Math.Dot2(1, 500) }; //if (Math.Math.isIntersect(new Math.Vector(source[0], source[1]), new Math.Vector(source[2], source[3]), out ss)) //{ // draw.Lines(source); // interActive = new List<Math.Dot2>() { ss }; // draw.Dots(interActive); //} }
private void Clear_Click(object sender, RoutedEventArgs e) { this.MineCanvas.Children.Clear(); border = new Math.Border(3, (int)this.MineCanvas.Width - 10, (int)this.MineCanvas.Height - 10); draw.Lines(border); }