示例#1
0
        private void button_ok_Click(object sender, EventArgs e)
        {
            if (u_x1.Text == "" || u_x2.Text == "" || u_y1.Text == "" || u_y2.Text == "")
            {
                MessageBox.Show("Please Input All The Co-ordinates.");
            }
            else
            {
                Genetibase.MathX.NuGenStructures.NuGenPnt2D obj1 = new Genetibase.MathX.NuGenStructures.NuGenPnt2D();
                Genetibase.MathX.NuGenStructures.NuGenVec2D obj2 = new Genetibase.MathX.NuGenStructures.NuGenVec2D();

                obj1._x = new double[2];
                obj2._x = new double[2];

                obj1._x[0] = double.Parse(u_x1.Text);
                obj1._x[1] = double.Parse(u_y1.Text);

                obj2._x[0] = double.Parse(u_x2.Text);
                obj2._x[1] = double.Parse(u_y2.Text);

                ray1 = new NuGenRay2D(obj1, obj2);

                button_add.Enabled = true;
            }
        }
示例#2
0
        private void button_ok_Click(object sender, EventArgs e)
        {
            if (u_x1.Text == "" || u_x2.Text == "" || u_y1.Text == "" || u_y2.Text == "" )
            {
                MessageBox.Show("Please Input All The Co-ordinates.");

            }
            else
            {
                Genetibase.MathX.NuGenStructures.NuGenPnt2D obj1 = new Genetibase.MathX.NuGenStructures.NuGenPnt2D();
                Genetibase.MathX.NuGenStructures.NuGenVec2D obj2 = new Genetibase.MathX.NuGenStructures.NuGenVec2D();

                obj1._x = new double[2];
                obj2._x = new double[2];

                obj1._x[0] = double.Parse(u_x1.Text);
                obj1._x[1] = double.Parse(u_y1.Text);

                obj2._x[0] = double.Parse(u_x2.Text);
                obj2._x[1] = double.Parse(u_y2.Text);

                ray1 = new NuGenRay2D(obj1, obj2);

                button_add.Enabled = true;
  
                
                }
        }
示例#3
0
        private void button_add_Click(object sender, EventArgs e)
        {
            string str1 = "1";

            str1 = Interaction.InputBox("Please Enter a Float value of which you need Find The Position :", "Float Value", "1", 30, 30);
            Genetibase.MathX.NuGenStructures.NuGenPnt2D obj1 = new Genetibase.MathX.NuGenStructures.NuGenPnt2D();

            obj1 = ray1.GetPointOnRay(double.Parse(str1));

            u_x.Text = obj1._x[0].ToString();
            u_y.Text = obj1._x[1].ToString();
        }
示例#4
0
        private void button_add_Click(object sender, EventArgs e)
        {
            string str1 = "1";
            str1 = Interaction.InputBox("Please Enter a Float value of which you need Find The Position :", "Float Value", "1", 30, 30);
            Genetibase.MathX.NuGenStructures.NuGenPnt2D obj1 = new Genetibase.MathX.NuGenStructures.NuGenPnt2D();

            obj1 = ray1.GetPointOnRay(double.Parse(str1));

            u_x.Text = obj1._x[0].ToString();
            u_y.Text = obj1._x[1].ToString(); 

            
        }