public NuGenTrafo3D(NuGenTrafo2D t) { _x = new double[16]; _x[0] = t[0, 0]; _x[1] = t[0, 1]; _x[2] = 0.0; _x[3] = t[0, 2]; _x[4] = t[1, 0]; _x[5] = t[1, 1]; _x[6] = 0.0; _x[7] = t[1, 2]; _x[8] = 0.0; _x[9] = 0.0; _x[10] = 1.0; _x[11] = 0.0; _x[12] = t[2, 0]; _x[13] = t[2, 1]; _x[14] = 0.0; _x[15] = t[2, 2]; }
public static bool ApproxEquals(NuGenTrafo2D a, NuGenTrafo2D b) { for (int i = 0; i < 9; i++) { if (Math.Abs(a._x[0] - b._x[0]) > NuGenVector.TINY_DOUBLE) { return(false); } } return(true); }
private void button1_Click(object sender, EventArgs e) { if (text3_0.Text == "" || text3_1.Text == "" || text3_2.Text == "" || text3_3.Text == "" || text3_4.Text == "" || text3_5.Text == "" || text3_6.Text == "" || text3_7.Text == "" || text3_8.Text == "") { MessageBox.Show("Please Enter All The Values Correctly."); } else { var1 = new Genetibase.MathX.NuGenStructures.NuGenTrafo2D(double.Parse(text3_0.Text), double.Parse(text3_1.Text), double.Parse(text3_2.Text), double.Parse(text3_3.Text), double.Parse(text3_4.Text), double.Parse(text3_5.Text), double.Parse(text3_6.Text), double.Parse(text3_7.Text), double.Parse(text3_8.Text)); str = Interaction.InputBox("Please Enter a Double value by which you need to Calculate with", "Double Value", "1", 30, 30); } }
private void button1_Click(object sender, EventArgs e) { if (text3_0.Text == "" || text3_1.Text == "" || text3_2.Text == "" || text3_3.Text == "" || text3_4.Text == "" || text3_5.Text == "" || text3_6.Text == "" || text3_7.Text == "" || text3_8.Text == "") { MessageBox.Show("Please Enter All The Values Correctly."); } else { var1 = new Genetibase.MathX.NuGenStructures.NuGenTrafo2D( double.Parse(text3_0.Text), double.Parse(text3_1.Text), double.Parse(text3_2.Text), double.Parse(text3_3.Text), double.Parse(text3_4.Text), double.Parse(text3_5.Text), double.Parse(text3_6.Text), double.Parse(text3_7.Text), double.Parse(text3_8.Text)); str = Interaction.InputBox("Please Enter a Double value by which you need to Calculate with", "Double Value", "1", 30, 30); } }