UtilityEx.VertexInScreenPolygon Method

Checks whether a 3D vertex is inside the given screen polygon.
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
This language is not supported or no code example is available.
public static bool VertexInScreenPolygon( 
Point3D pt
IList<Point2D> screenPolygon
Point2D min
Point2D max
double[] modelViewProj
int[] viewFrame 
)
This language is not supported or no code example is available.

Parameters

pt
Point3D

The 3D vertex

screenPolygon
IList<Point2D>

The 2D screen polygon

min
Point2D

The minimum value of the 2D polygon

max
Point2D

The maximum value of the 2D polygon

modelViewProj
double[]

The modelview projection matrix

viewFrame
int[]

The viewport bounds

Return Value

bool

True if the vertex is inside the polygon.

.NET Framework

Supported in: 4.8

In this article

Definition