Click or drag to resize

BoundBox3DContains Method (Vertex3D)

BoundBox 영역에 포함 여부

Namespace:  VIZCore3D.NET.Data
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public bool Contains(
	Vertex3D v
)

Parameters

v
Type: VIZCore3D.NET.DataVertex3D
Vertex

Return Value

Type: Boolean
BoundBox 영역에 Vertex 가 완전히 포함된 경우 True, 그렇지 않으면 False를 반환
Examples
C#
// 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.");
    }
}
See Also