MiscFunctions..::..IsPointInsideTriangle Method (IList<(Of <(<'Vertex>)>)>, Vertex, Boolean)

Returns whether a vertex lies on a triangle. User can specify whether the edges of the triangle are considered "inside."

Namespace:  TVGL
Assembly:  TessellationAndVoxelizationGeometryLibraryUniversal (in TessellationAndVoxelizationGeometryLibraryUniversal.dll)

Syntax


public static bool IsPointInsideTriangle(
	IList<Vertex> vertices,
	Vertex vertexInQuestion,
	bool onBoundaryIsInside
)
Public Shared Function IsPointInsideTriangle ( _
	vertices As IList(Of Vertex), _
	vertexInQuestion As Vertex, _
	onBoundaryIsInside As Boolean _
) As Boolean
public:
static bool^ IsPointInsideTriangle(
	IList<Vertex^>^ vertices, 
	Vertex^ vertexInQuestion, 
	bool^ onBoundaryIsInside
)

Parameters

vertices
Type: IList<(Of <(<'Vertex>)>)>
The vertices.
vertexInQuestion
Type: TVGL..::..Vertex
The vertex in question.
onBoundaryIsInside
Type: Boolean
if set to true [on boundary is inside].

Return Value

true if [is point inside triangle] [the specified vertices]; otherwise, false.

Exceptions


ExceptionCondition
ExceptionIncorrect number of points in traingle
ArgumentException