Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Geometry Namespace / UtilityEx Class / VertexInScreenPolygon Method
The 3D vertex
The 2D screen polygon
The minimum value of the 2D polygon
The maximum value of the 2D polygon
The modelview projection matrix
The viewport bounds

In This Topic
    VertexInScreenPolygon Method
    In This Topic
    Checks whether a 3D vertex is inside the given screen polygon.
    Syntax
    'Declaration
     
    Public Shared Function VertexInScreenPolygon( _
       ByVal pt As Point3D, _
       ByVal screenPolygon As IList(Of Point2D), _
       ByVal min As Point2D, _
       ByVal max As Point2D, _
       ByVal modelViewProj() As Double, _
       ByVal viewFrame() As Integer _
    ) As Boolean
    public static bool VertexInScreenPolygon( 
       Point3D pt,
       IList<Point2D> screenPolygon,
       Point2D min,
       Point2D max,
       double[] modelViewProj,
       int[] viewFrame
    )

    Parameters

    pt
    The 3D vertex
    screenPolygon
    The 2D screen polygon
    min
    The minimum value of the 2D polygon
    max
    The maximum value of the 2D polygon
    modelViewProj
    The modelview projection matrix
    viewFrame
    The viewport bounds

    Return Value

    True if the vertex is inside the polygon.
    See Also