Beispiel #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (u_x1_3.Text == "" || u_x2_3.Text == "" || u_y1_3.Text == "" || u_y2_3.Text == "")
            {
                MessageBox.Show("Please Input All The Co-ordinates.");
            }
            else
            {
                Genetibase.MathX.NuGenStructures.NuGenPnt3D obj1 = new Genetibase.MathX.NuGenStructures.NuGenPnt3D();
                Genetibase.MathX.NuGenStructures.NuGenVec3D obj2 = new Genetibase.MathX.NuGenStructures.NuGenVec3D();

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

                obj1._x[0] = double.Parse(u_x1_3.Text);
                obj1._x[1] = double.Parse(u_y1_3.Text);
                obj1._x[2] = double.Parse(u_h1.Text);

                obj2._x[0] = double.Parse(u_x2_3.Text);
                obj2._x[1] = double.Parse(u_y2_3.Text);
                obj2._x[2] = double.Parse(u_h2.Text);


                ray = new NuGenRay3D(obj1, obj2);

                button_add_3.Enabled = true;
            }
        }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (u_x1_3.Text == "" || u_x2_3.Text == "" || u_y1_3.Text == "" || u_y2_3.Text == "")
            {
                MessageBox.Show("Please Input All The Co-ordinates.");

            }
            else
            {
                Genetibase.MathX.NuGenStructures.NuGenPnt3D obj1 = new Genetibase.MathX.NuGenStructures.NuGenPnt3D();
                Genetibase.MathX.NuGenStructures.NuGenVec3D obj2 = new Genetibase.MathX.NuGenStructures.NuGenVec3D();

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

                obj1._x[0] = double.Parse(u_x1_3.Text);
                obj1._x[1] = double.Parse(u_y1_3.Text);
                obj1._x[2] = double.Parse(u_h1.Text);     

                obj2._x[0] = double.Parse(u_x2_3.Text);
                obj2._x[1] = double.Parse(u_y2_3.Text);
                obj2._x[2] = double.Parse(u_h2.Text);
    

                ray = new NuGenRay3D(obj1, obj2);

                button_add_3.Enabled = true;


            }
        }