public static NuGenBox3F operator *(NuGenBox3F b, NuGenTrafo3F t) { NuGenBox3F result = NuGenBox3F.Empty; result += b.LLL * t; result += b.LLU * t; result += b.LUL * t; result += b.LUU * t; result += b.ULL * t; result += b.ULU * t; result += b.UUL * t; result += b.UUU * t; return(result); }
public static NuGenBox3F operator *(NuGenBox3F b, NuGenRot3F r) { NuGenBox3F result = NuGenBox3F.Empty; result += b.LLL * r; result += b.LLU * r; result += b.LUL * r; result += b.LUU * r; result += b.ULL * r; result += b.ULU * r; result += b.UUL * r; result += b.UUU * r; return(result); }
private void button2_Click(object sender, EventArgs e) { if (Genetibase.MathX.NuGenStructures.NuGen_Structures_Main.ind == 1) { if (u_x1_3.Text == "" || u_x2_3.Text == "" || u_h1.Text == "" || u_h2.Text == "" || u_y1_3.Text == "" || u_y2_3.Text == "" || l_x1_3.Text == "" || l_x2_3.Text == "" || l_h1.Text == "" || l_h2.Text == "" || l_y1_3.Text == "" || l_y2_3.Text == "") { MessageBox.Show("Please Input All The Co-ordinates."); } else { button_add_3.Enabled = true; //NuGenBox2D lower_u, upper_u; box1_3 = new Genetibase.MathX.NuGenStructures.NuGenBox3D(); box2_3 = new Genetibase.MathX.NuGenStructures.NuGenBox3D(); //upper_u = new NuGenBox2D(); //box1_3.lower = new NuGenPnt3D(); box1_3.lower._x = new Double[3]; box1_3.lower._x[0] = (double.Parse(l_x1_3.Text)); box1_3.lower._x[1] = (double.Parse(l_y1_3.Text)); box1_3.lower._x[2] = (double.Parse(l_h1.Text)); box1_3.upper._x = new Double[3]; box1_3.upper._x[0] = (double.Parse(u_x1_3.Text)); box1_3.upper._x[1] = double.Parse(u_y1_3.Text); box1_3.lower._x[2] = (double.Parse(u_h1.Text)); box2_3.lower._x = new Double[3]; box2_3.lower._x[0] = double.Parse(l_x2_3.Text); box2_3.lower._x[1] = double.Parse(l_y2_3.Text); box2_3.lower._x[2] = (double.Parse(l_h2.Text)); box2_3.upper._x = new Double[3]; box2_3.upper._x[0] = double.Parse(u_x2_3.Text); box2_3.upper._x[1] = double.Parse(u_y2_3.Text); box2_3.lower._x[2] = (double.Parse(u_h2.Text)); } } else if (Genetibase.MathX.NuGenStructures.NuGen_Structures_Main.ind == 2) { if (u_x1_3.Text == "" || u_x2_3.Text == "" || u_h1.Text == "" || u_h2.Text == "" || u_y1_3.Text == "" || u_y2_3.Text == "" || l_x1_3.Text == "" || l_x2_3.Text == "" || l_h1.Text == "" || l_h2.Text == "" || l_y1_3.Text == "" || l_y2_3.Text == "") { MessageBox.Show("Please Input All The Co-ordinates."); } else { button_add_3.Enabled = true; //NuGenBox2D lower_u, upper_u; box1_3_f = new Genetibase.MathX.NuGenStructures.NuGenBox3F(); box2_3_f = new Genetibase.MathX.NuGenStructures.NuGenBox3F(); //upper_u = new NuGenBox2D(); //box1_3.lower = new NuGenPnt3D(); box1_3_f.lower._x = new float[3]; box1_3_f.lower._x[0] = (float.Parse(l_x1_3.Text)); box1_3_f.lower._x[1] = (float.Parse(l_y1_3.Text)); box1_3_f.lower._x[2] = (float.Parse(l_h1.Text)); box1_3_f.upper._x = new float[3]; box1_3_f.upper._x[0] = (float.Parse(u_x1_3.Text)); box1_3_f.upper._x[1] = float.Parse(u_y1_3.Text); box1_3_f.lower._x[2] = (float.Parse(u_h1.Text)); box2_3_f.lower._x = new float[3]; box2_3_f.lower._x[0] = float.Parse(l_x2_3.Text); box2_3_f.lower._x[1] = float.Parse(l_y2_3.Text); box2_3_f.lower._x[2] = (float.Parse(l_h2.Text)); box2_3_f.upper._x = new float[3]; box2_3_f.upper._x[0] = float.Parse(u_x2_3.Text); box2_3_f.upper._x[1] = float.Parse(u_y2_3.Text); box2_3_f.lower._x[2] = (float.Parse(u_h2.Text)); } } }
public override bool Equals(object obj) { NuGenBox3F x = (NuGenBox3F)obj; return(lower == x.Lower && upper == x.Upper); }
public static bool ApproxEqual(NuGenBox3F a, NuGenBox3F b) { return (NuGenVector.ApproxEquals(a.Lower, b.Lower) && NuGenVector.ApproxEquals(a.Upper, b.Upper)); }
public static bool ApproxEqual(NuGenBox3F a, NuGenBox3F b) { return NuGenVector.ApproxEquals(a.Lower, b.Lower) && NuGenVector.ApproxEquals(a.Upper, b.Upper); }
private void button2_Click(object sender, EventArgs e) { if (Genetibase.MathX.NuGenStructures.NuGen_Structures_Main.ind == 1) { if (u_x1_3.Text == "" || u_x2_3.Text == "" || u_h1.Text == "" || u_h2.Text == "" || u_y1_3.Text == "" || u_y2_3.Text == "" || l_x1_3.Text == "" || l_x2_3.Text == "" || l_h1.Text == "" || l_h2.Text == "" || l_y1_3.Text == "" || l_y2_3.Text == "") { MessageBox.Show("Please Input All The Co-ordinates."); } else { button_add_3.Enabled = true; //NuGenBox2D lower_u, upper_u; box1_3 = new Genetibase.MathX.NuGenStructures.NuGenBox3D(); box2_3 = new Genetibase.MathX.NuGenStructures.NuGenBox3D(); //upper_u = new NuGenBox2D(); //box1_3.lower = new NuGenPnt3D(); box1_3.lower._x = new Double[3]; box1_3.lower._x[0] = (double.Parse(l_x1_3.Text)); box1_3.lower._x[1] = (double.Parse(l_y1_3.Text)); box1_3.lower._x[2] = (double.Parse(l_h1.Text)); box1_3.upper._x = new Double[3]; box1_3.upper._x[0] = (double.Parse(u_x1_3.Text)); box1_3.upper._x[1] = double.Parse(u_y1_3.Text); box1_3.lower._x[2] = (double.Parse(u_h1.Text)); box2_3.lower._x = new Double[3]; box2_3.lower._x[0] = double.Parse(l_x2_3.Text); box2_3.lower._x[1] = double.Parse(l_y2_3.Text); box2_3.lower._x[2] = (double.Parse(l_h2.Text)); box2_3.upper._x = new Double[3]; box2_3.upper._x[0] = double.Parse(u_x2_3.Text); box2_3.upper._x[1] = double.Parse(u_y2_3.Text); box2_3.lower._x[2] = (double.Parse(u_h2.Text)); } } else if(Genetibase.MathX.NuGenStructures.NuGen_Structures_Main.ind ==2) { if (u_x1_3.Text == "" || u_x2_3.Text == "" || u_h1.Text == "" || u_h2.Text == "" || u_y1_3.Text == "" || u_y2_3.Text == "" || l_x1_3.Text == "" || l_x2_3.Text == "" || l_h1.Text == "" || l_h2.Text == "" || l_y1_3.Text == "" || l_y2_3.Text == "") { MessageBox.Show("Please Input All The Co-ordinates."); } else { button_add_3.Enabled = true; //NuGenBox2D lower_u, upper_u; box1_3_f = new Genetibase.MathX.NuGenStructures.NuGenBox3F(); box2_3_f = new Genetibase.MathX.NuGenStructures.NuGenBox3F(); //upper_u = new NuGenBox2D(); //box1_3.lower = new NuGenPnt3D(); box1_3_f.lower._x = new float[3]; box1_3_f.lower._x[0] = (float.Parse(l_x1_3.Text)); box1_3_f.lower._x[1] = (float.Parse(l_y1_3.Text)); box1_3_f.lower._x[2] = (float.Parse(l_h1.Text)); box1_3_f.upper._x = new float[3]; box1_3_f.upper._x[0] = (float.Parse(u_x1_3.Text)); box1_3_f.upper._x[1] = float.Parse(u_y1_3.Text); box1_3_f.lower._x[2] = (float.Parse(u_h1.Text)); box2_3_f.lower._x = new float[3]; box2_3_f.lower._x[0] = float.Parse(l_x2_3.Text); box2_3_f.lower._x[1] = float.Parse(l_y2_3.Text); box2_3_f.lower._x[2] = (float.Parse(l_h2.Text)); box2_3_f.upper._x = new float[3]; box2_3_f.upper._x[0] = float.Parse(u_x2_3.Text); box2_3_f.upper._x[1] = float.Parse(u_y2_3.Text); box2_3_f.lower._x[2] = (float.Parse(u_h2.Text)); } } }