MiscFunctions..::..IsPointInsideTriangle Method (PolygonalFace, 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(
	PolygonalFace triangle,
	Vertex vertexInQuestion,
	bool onBoundaryIsInside
)
Public Shared Function IsPointInsideTriangle ( _
	triangle As PolygonalFace, _
	vertexInQuestion As Vertex, _
	onBoundaryIsInside As Boolean _
) As Boolean
public:
static bool^ IsPointInsideTriangle(
	PolygonalFace^ triangle, 
	Vertex^ vertexInQuestion, 
	bool^ onBoundaryIsInside
)

Parameters

triangle
Type: TVGL..::..PolygonalFace
The triangle.
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 triangle]; otherwise, false.