BoundBox3DContains Method (Vertex3D) |
Namespace: VIZCore3D.NET.Data
public bool Contains( Vertex3D v )
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void Example() { VIZCore3D.NET.Data.BoundBox3D box = new VIZCore3D.NET.Data.BoundBox3D( -100.0f /* Min. X */ , -100.0f /* Min. Y */ , -100.0f /* Min. Z */ , 100.0f /* Max. X */ , 100.0f /* Max. Y */ , 100.0f /* Max. Z */ ); VIZCore3D.NET.Data.Vertex3D v = new VIZCore3D.NET.Data.Vertex3D(10.0f, 10.0f, 10.0f); if(box.Contains(v) == true) { System.Diagnostics.Debug.WriteLine("V is included."); } else { System.Diagnostics.Debug.WriteLine("V is not included."); } }